//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2021 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto/tree/main/CodeGenerator. DO NOT EDIT.

import Foundation
import SotoCore

extension CloudFront {
    // MARK: Enums

    public enum CachePolicyCookieBehavior: String, CustomStringConvertible, Codable {
        case all
        case allexcept = "allExcept"
        case none
        case whitelist
        public var description: String { return self.rawValue }
    }

    public enum CachePolicyHeaderBehavior: String, CustomStringConvertible, Codable {
        case none
        case whitelist
        public var description: String { return self.rawValue }
    }

    public enum CachePolicyQueryStringBehavior: String, CustomStringConvertible, Codable {
        case all
        case allexcept = "allExcept"
        case none
        case whitelist
        public var description: String { return self.rawValue }
    }

    public enum CachePolicyType: String, CustomStringConvertible, Codable {
        case custom
        case managed
        public var description: String { return self.rawValue }
    }

    public enum EventType: String, CustomStringConvertible, Codable {
        case originRequest = "origin-request"
        case originResponse = "origin-response"
        case viewerRequest = "viewer-request"
        case viewerResponse = "viewer-response"
        public var description: String { return self.rawValue }
    }

    public enum Format: String, CustomStringConvertible, Codable {
        case urlencoded = "URLEncoded"
        public var description: String { return self.rawValue }
    }

    public enum GeoRestrictionType: String, CustomStringConvertible, Codable {
        case blacklist
        case none
        case whitelist
        public var description: String { return self.rawValue }
    }

    public enum HttpVersion: String, CustomStringConvertible, Codable {
        case http11 = "HTTP1_1"
        case http2 = "HTTP2"
        public var description: String { return self.rawValue }
    }

    public enum ICPRecordalStatus: String, CustomStringConvertible, Codable {
        case approved = "APPROVED"
        case pending = "PENDING"
        case suspended = "SUSPENDED"
        public var description: String { return self.rawValue }
    }

    public enum Method: String, CustomStringConvertible, Codable {
        case delete = "DELETE"
        case get = "GET"
        case head = "HEAD"
        case options = "OPTIONS"
        case patch = "PATCH"
        case post = "POST"
        case put = "PUT"
        public var description: String { return self.rawValue }
    }

    public enum MinimumProtocolVersion: String, CustomStringConvertible, Codable {
        case sslv3 = "SSLv3"
        case tlsv1 = "TLSv1"
        case tlsv112016 = "TLSv1.1_2016"
        case tlsv12016 = "TLSv1_2016"
        case tlsv122018 = "TLSv1.2_2018"
        case tlsv122019 = "TLSv1.2_2019"
        public var description: String { return self.rawValue }
    }

    public enum OriginProtocolPolicy: String, CustomStringConvertible, Codable {
        case httpOnly = "http-only"
        case httpsOnly = "https-only"
        case matchViewer = "match-viewer"
        public var description: String { return self.rawValue }
    }

    public enum OriginRequestPolicyCookieBehavior: String, CustomStringConvertible, Codable {
        case all
        case none
        case whitelist
        public var description: String { return self.rawValue }
    }

    public enum OriginRequestPolicyHeaderBehavior: String, CustomStringConvertible, Codable {
        case allviewer = "allViewer"
        case allviewerandwhitelistcloudfront = "allViewerAndWhitelistCloudFront"
        case none
        case whitelist
        public var description: String { return self.rawValue }
    }

    public enum OriginRequestPolicyQueryStringBehavior: String, CustomStringConvertible, Codable {
        case all
        case none
        case whitelist
        public var description: String { return self.rawValue }
    }

    public enum OriginRequestPolicyType: String, CustomStringConvertible, Codable {
        case custom
        case managed
        public var description: String { return self.rawValue }
    }

    public enum PriceClass: String, CustomStringConvertible, Codable {
        case priceclass100 = "PriceClass_100"
        case priceclass200 = "PriceClass_200"
        case priceclassAll = "PriceClass_All"
        public var description: String { return self.rawValue }
    }

    public enum RealtimeMetricsSubscriptionStatus: String, CustomStringConvertible, Codable {
        case disabled = "Disabled"
        case enabled = "Enabled"
        public var description: String { return self.rawValue }
    }

    public enum SSLSupportMethod: String, CustomStringConvertible, Codable {
        case sniOnly = "sni-only"
        case staticIp = "static-ip"
        case vip
        public var description: String { return self.rawValue }
    }

    public enum SslProtocol: String, CustomStringConvertible, Codable {
        case sslv3 = "SSLv3"
        case tlsv1 = "TLSv1"
        case tlsv11 = "TLSv1.1"
        case tlsv12 = "TLSv1.2"
        public var description: String { return self.rawValue }
    }

    public enum ViewerProtocolPolicy: String, CustomStringConvertible, Codable {
        case allowAll = "allow-all"
        case httpsOnly = "https-only"
        case redirectToHttps = "redirect-to-https"
        public var description: String { return self.rawValue }
    }

    // MARK: Shapes

    public struct ActiveTrustedKeyGroups: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "KeyGroup" }

        /// This field is true if any of the key groups have public keys that CloudFront can use to verify the signatures of signed URLs and signed cookies. If not, this field is false.
        public let enabled: Bool
        /// A list of key groups, including the identifiers of the public keys in each key group that CloudFront can use to verify the signatures of signed URLs and signed cookies.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, KGKeyPairIds>>
        public var items: [KGKeyPairIds]?
        /// The number of key groups in the list.
        public let quantity: Int

        public init(enabled: Bool, items: [KGKeyPairIds]? = nil, quantity: Int) {
            self.enabled = enabled
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case enabled = "Enabled"
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct ActiveTrustedSigners: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Signer" }

        /// This field is true if any of the AWS accounts in the list have active CloudFront key pairs that CloudFront can use to verify the signatures of signed URLs and signed cookies. If not, this field is false.
        public let enabled: Bool
        /// A list of AWS accounts and the identifiers of active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs and signed cookies.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, Signer>>
        public var items: [Signer]?
        /// The number of AWS accounts in the list.
        public let quantity: Int

        public init(enabled: Bool, items: [Signer]? = nil, quantity: Int) {
            self.enabled = enabled
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case enabled = "Enabled"
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct AliasICPRecordal: AWSDecodableShape {
        /// A domain name associated with a distribution.
        public let cname: String?
        /// The Internet Content Provider (ICP) recordal status for a CNAME. The ICPRecordalStatus is set to APPROVED for all CNAMEs (aliases) in regions outside of China.  The status values returned are the following:    APPROVED indicates that the associated CNAME has a valid ICP recordal number. Multiple CNAMEs can be associated with a distribution, and CNAMEs can correspond to different ICP recordals. To be marked as APPROVED, that is, valid to use with China region, a CNAME must have one ICP recordal number associated with it.    SUSPENDED indicates that the associated CNAME does not have a valid ICP recordal number.    PENDING indicates that CloudFront can't determine the ICP recordal status of the CNAME associated with the distribution because there was an error in trying to determine the status. You can try again to see if the error is resolved in which case CloudFront returns an APPROVED or SUSPENDED status.
        public let iCPRecordalStatus: ICPRecordalStatus?

        public init(cname: String? = nil, iCPRecordalStatus: ICPRecordalStatus? = nil) {
            self.cname = cname
            self.iCPRecordalStatus = iCPRecordalStatus
        }

        private enum CodingKeys: String, CodingKey {
            case cname = "CNAME"
            case iCPRecordalStatus = "ICPRecordalStatus"
        }
    }

    public struct Aliases: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "CNAME" }

        /// A complex type that contains the CNAME aliases, if any, that you want to associate with this distribution.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The number of CNAME aliases, if any, that you want to associate with this distribution.
        public let quantity: Int

        public init(items: [String]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct AllowedMethods: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Method" }

        public let cachedMethods: CachedMethods?
        /// A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
        @CustomCoding<ArrayCoder<_ItemsEncoding, Method>>
        public var items: [Method]
        /// The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).
        public let quantity: Int

        public init(cachedMethods: CachedMethods? = nil, items: [Method], quantity: Int) {
            self.cachedMethods = cachedMethods
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case cachedMethods = "CachedMethods"
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct CacheBehavior: AWSEncodableShape & AWSDecodableShape {
        public let allowedMethods: AllowedMethods?
        /// The unique identifier of the cache policy that is attached to this cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
        public let cachePolicyId: String?
        /// Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.
        public let compress: Bool?
        /// The value of ID for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for this cache behavior.
        public let fieldLevelEncryptionId: String?
        /// A complex type that contains zero or more Lambda function associations for a cache behavior.
        public let lambdaFunctionAssociations: LambdaFunctionAssociations?
        /// The unique identifier of the origin request policy that is attached to this cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
        public let originRequestPolicyId: String?
        /// The pattern (for example, images/*.jpg) that specifies which requests to apply the behavior to. When CloudFront receives a viewer request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution.  You can optionally include a slash (/) at the beginning of the path pattern. For example, /images/*.jpg. CloudFront behavior is the same with or without the leading /.  The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior. For more information, see Path Pattern in the  Amazon CloudFront Developer Guide.
        public let pathPattern: String
        /// The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
        public let realtimeLogConfigArn: String?
        /// Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false. If you specify true for SmoothStreaming, you can still distribute other content using this cache behavior if the content matches the value of PathPattern.
        public let smoothStreaming: Bool?
        /// The value of ID for the origin that you want CloudFront to route requests to when they match this cache behavior.
        public let targetOriginId: String
        /// A list of key groups that CloudFront can use to validate signed URLs or signed cookies. When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
        public let trustedKeyGroups: TrustedKeyGroups?
        ///  We recommend using TrustedKeyGroups instead of TrustedSigners.  A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies. When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in the trusted signer’s AWS account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
        public let trustedSigners: TrustedSigners?
        /// The protocol that viewers can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. You can specify the following options:    allow-all: Viewers can use HTTP or HTTPS.    redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.     https-only: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).    For more information about requiring the HTTPS protocol, see Requiring HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer Guide.  The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing Cache Expiration in the Amazon CloudFront Developer Guide.
        public let viewerProtocolPolicy: ViewerProtocolPolicy

        public init(allowedMethods: AllowedMethods? = nil, cachePolicyId: String? = nil, compress: Bool? = nil, fieldLevelEncryptionId: String? = nil, lambdaFunctionAssociations: LambdaFunctionAssociations? = nil, originRequestPolicyId: String? = nil, pathPattern: String, realtimeLogConfigArn: String? = nil, smoothStreaming: Bool? = nil, targetOriginId: String, trustedKeyGroups: TrustedKeyGroups? = nil, trustedSigners: TrustedSigners? = nil, viewerProtocolPolicy: ViewerProtocolPolicy) {
            self.allowedMethods = allowedMethods
            self.cachePolicyId = cachePolicyId
            self.compress = compress
            self.fieldLevelEncryptionId = fieldLevelEncryptionId
            self.lambdaFunctionAssociations = lambdaFunctionAssociations
            self.originRequestPolicyId = originRequestPolicyId
            self.pathPattern = pathPattern
            self.realtimeLogConfigArn = realtimeLogConfigArn
            self.smoothStreaming = smoothStreaming
            self.targetOriginId = targetOriginId
            self.trustedKeyGroups = trustedKeyGroups
            self.trustedSigners = trustedSigners
            self.viewerProtocolPolicy = viewerProtocolPolicy
        }

        private enum CodingKeys: String, CodingKey {
            case allowedMethods = "AllowedMethods"
            case cachePolicyId = "CachePolicyId"
            case compress = "Compress"
            case fieldLevelEncryptionId = "FieldLevelEncryptionId"
            case lambdaFunctionAssociations = "LambdaFunctionAssociations"
            case originRequestPolicyId = "OriginRequestPolicyId"
            case pathPattern = "PathPattern"
            case realtimeLogConfigArn = "RealtimeLogConfigArn"
            case smoothStreaming = "SmoothStreaming"
            case targetOriginId = "TargetOriginId"
            case trustedKeyGroups = "TrustedKeyGroups"
            case trustedSigners = "TrustedSigners"
            case viewerProtocolPolicy = "ViewerProtocolPolicy"
        }
    }

    public struct CacheBehaviors: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "CacheBehavior" }

        /// Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, CacheBehavior>>
        public var items: [CacheBehavior]?
        /// The number of cache behaviors for this distribution.
        public let quantity: Int

        public init(items: [CacheBehavior]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct CachePolicy: AWSDecodableShape {
        /// The cache policy configuration.
        public let cachePolicyConfig: CachePolicyConfig
        /// The unique identifier for the cache policy.
        public let id: String
        /// The date and time when the cache policy was last modified.
        public let lastModifiedTime: Date

        public init(cachePolicyConfig: CachePolicyConfig, id: String, lastModifiedTime: Date) {
            self.cachePolicyConfig = cachePolicyConfig
            self.id = id
            self.lastModifiedTime = lastModifiedTime
        }

        private enum CodingKeys: String, CodingKey {
            case cachePolicyConfig = "CachePolicyConfig"
            case id = "Id"
            case lastModifiedTime = "LastModifiedTime"
        }
    }

    public struct CachePolicyConfig: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A comment to describe the cache policy.
        public let comment: String?
        /// The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. CloudFront uses this value as the object’s time to live (TTL) only when the origin does not send Cache-Control or Expires headers with the object. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide. The default value for this field is 86400 seconds (one day). If the value of MinTTL is more than 86400 seconds, then the default value for this field is the same as the value of MinTTL.
        public let defaultTTL: Int64?
        /// The maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. CloudFront uses this value only when the origin sends Cache-Control or Expires headers with the object. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide. The default value for this field is 31536000 seconds (one year). If the value of MinTTL or DefaultTTL is more than 31536000 seconds, then the default value for this field is the same as the value of DefaultTTL.
        public let maxTTL: Int64?
        /// The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
        public let minTTL: Int64
        /// A unique name to identify the cache policy.
        public let name: String
        /// The HTTP headers, cookies, and URL query strings to include in the cache key. The values included in the cache key are automatically included in requests that CloudFront sends to the origin.
        public let parametersInCacheKeyAndForwardedToOrigin: ParametersInCacheKeyAndForwardedToOrigin?

        public init(comment: String? = nil, defaultTTL: Int64? = nil, maxTTL: Int64? = nil, minTTL: Int64, name: String, parametersInCacheKeyAndForwardedToOrigin: ParametersInCacheKeyAndForwardedToOrigin? = nil) {
            self.comment = comment
            self.defaultTTL = defaultTTL
            self.maxTTL = maxTTL
            self.minTTL = minTTL
            self.name = name
            self.parametersInCacheKeyAndForwardedToOrigin = parametersInCacheKeyAndForwardedToOrigin
        }

        private enum CodingKeys: String, CodingKey {
            case comment = "Comment"
            case defaultTTL = "DefaultTTL"
            case maxTTL = "MaxTTL"
            case minTTL = "MinTTL"
            case name = "Name"
            case parametersInCacheKeyAndForwardedToOrigin = "ParametersInCacheKeyAndForwardedToOrigin"
        }
    }

    public struct CachePolicyCookiesConfig: AWSEncodableShape & AWSDecodableShape {
        /// Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:    none – Cookies in viewer requests are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in an OriginRequestPolicy are included in origin requests.    whitelist – The cookies in viewer requests that are listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.    allExcept – All cookies in viewer requests that are  not  listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.    all – All cookies in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.
        public let cookieBehavior: CachePolicyCookieBehavior
        public let cookies: CookieNames?

        public init(cookieBehavior: CachePolicyCookieBehavior, cookies: CookieNames? = nil) {
            self.cookieBehavior = cookieBehavior
            self.cookies = cookies
        }

        private enum CodingKeys: String, CodingKey {
            case cookieBehavior = "CookieBehavior"
            case cookies = "Cookies"
        }
    }

    public struct CachePolicyHeadersConfig: AWSEncodableShape & AWSDecodableShape {
        /// Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:    none – HTTP headers are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.    whitelist – The HTTP headers that are listed in the Headers type are included in the cache key and are automatically included in requests that CloudFront sends to the origin.
        public let headerBehavior: CachePolicyHeaderBehavior
        public let headers: Headers?

        public init(headerBehavior: CachePolicyHeaderBehavior, headers: Headers? = nil) {
            self.headerBehavior = headerBehavior
            self.headers = headers
        }

        private enum CodingKeys: String, CodingKey {
            case headerBehavior = "HeaderBehavior"
            case headers = "Headers"
        }
    }

    public struct CachePolicyList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "CachePolicySummary" }

        /// Contains the cache policies in the list.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, CachePolicySummary>>
        public var items: [CachePolicySummary]?
        /// The maximum number of cache policies requested.
        public let maxItems: Int
        /// If there are more items in the list than are in this response, this element is present. It contains the value that you should use in the Marker field of a subsequent request to continue listing cache policies where you left off.
        public let nextMarker: String?
        /// The total number of cache policies returned in the response.
        public let quantity: Int

        public init(items: [CachePolicySummary]? = nil, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.items = items
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct CachePolicyQueryStringsConfig: AWSEncodableShape & AWSDecodableShape {
        /// Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:    none – Query strings in viewer requests are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to none, any query strings that are listed in an OriginRequestPolicy are included in origin requests.    whitelist – The query strings in viewer requests that are listed in the QueryStringNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.    allExcept – All query strings in viewer requests that are  not  listed in the QueryStringNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.    all – All query strings in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.
        public let queryStringBehavior: CachePolicyQueryStringBehavior
        /// Contains the specific query strings in viewer requests that either  are  or  are not  included in the cache key and automatically included in requests that CloudFront sends to the origin. The behavior depends on whether the QueryStringBehavior field in the CachePolicyQueryStringsConfig type is set to whitelist (the listed query strings  are  included) or allExcept (the listed query strings  are not  included, but all other query strings are).
        public let queryStrings: QueryStringNames?

        public init(queryStringBehavior: CachePolicyQueryStringBehavior, queryStrings: QueryStringNames? = nil) {
            self.queryStringBehavior = queryStringBehavior
            self.queryStrings = queryStrings
        }

        private enum CodingKeys: String, CodingKey {
            case queryStringBehavior = "QueryStringBehavior"
            case queryStrings = "QueryStrings"
        }
    }

    public struct CachePolicySummary: AWSDecodableShape {
        /// The cache policy.
        public let cachePolicy: CachePolicy
        /// The type of cache policy, either managed (created by AWS) or custom (created in this AWS account).
        public let type: CachePolicyType

        public init(cachePolicy: CachePolicy, type: CachePolicyType) {
            self.cachePolicy = cachePolicy
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case cachePolicy = "CachePolicy"
            case type = "Type"
        }
    }

    public struct CachedMethods: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Method" }

        /// A complex type that contains the HTTP methods that you want CloudFront to cache responses to.
        @CustomCoding<ArrayCoder<_ItemsEncoding, Method>>
        public var items: [Method]
        /// The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).
        public let quantity: Int

        public init(items: [Method], quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct CloudFrontOriginAccessIdentity: AWSDecodableShape {
        /// The current configuration information for the identity.
        public let cloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig?
        /// The ID for the origin access identity, for example, E74FTE3AJFJ256A.
        public let id: String
        /// The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.
        public let s3CanonicalUserId: String

        public init(cloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig? = nil, id: String, s3CanonicalUserId: String) {
            self.cloudFrontOriginAccessIdentityConfig = cloudFrontOriginAccessIdentityConfig
            self.id = id
            self.s3CanonicalUserId = s3CanonicalUserId
        }

        private enum CodingKeys: String, CodingKey {
            case cloudFrontOriginAccessIdentityConfig = "CloudFrontOriginAccessIdentityConfig"
            case id = "Id"
            case s3CanonicalUserId = "S3CanonicalUserId"
        }
    }

    public struct CloudFrontOriginAccessIdentityConfig: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A unique value (for example, a date-time stamp) that ensures that the request can't be replayed. If the value of CallerReference is new (regardless of the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request.  If the CallerReference is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.
        public let callerReference: String
        /// Any comments you want to include about the origin access identity.
        public let comment: String

        public init(callerReference: String, comment: String) {
            self.callerReference = callerReference
            self.comment = comment
        }

        private enum CodingKeys: String, CodingKey {
            case callerReference = "CallerReference"
            case comment = "Comment"
        }
    }

    public struct CloudFrontOriginAccessIdentityList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "CloudFrontOriginAccessIdentitySummary" }

        /// A flag that indicates whether more origin access identities remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more items in the list.
        public let isTruncated: Bool
        /// A complex type that contains one CloudFrontOriginAccessIdentitySummary element for each origin access identity that was created by the current AWS account.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, CloudFrontOriginAccessIdentitySummary>>
        public var items: [CloudFrontOriginAccessIdentitySummary]?
        /// Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).
        public let marker: String
        /// The maximum number of origin access identities you want in the response body.
        public let maxItems: Int
        /// If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your origin access identities where they left off.
        public let nextMarker: String?
        /// The number of CloudFront origin access identities that were created by the current AWS account.
        public let quantity: Int

        public init(isTruncated: Bool, items: [CloudFrontOriginAccessIdentitySummary]? = nil, marker: String, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.isTruncated = isTruncated
            self.items = items
            self.marker = marker
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case isTruncated = "IsTruncated"
            case items = "Items"
            case marker = "Marker"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct CloudFrontOriginAccessIdentitySummary: AWSDecodableShape {
        /// The comment for this origin access identity, as originally specified when created.
        public let comment: String
        /// The ID for the origin access identity. For example: E74FTE3AJFJ256A.
        public let id: String
        /// The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.
        public let s3CanonicalUserId: String

        public init(comment: String, id: String, s3CanonicalUserId: String) {
            self.comment = comment
            self.id = id
            self.s3CanonicalUserId = s3CanonicalUserId
        }

        private enum CodingKeys: String, CodingKey {
            case comment = "Comment"
            case id = "Id"
            case s3CanonicalUserId = "S3CanonicalUserId"
        }
    }

    public struct ContentTypeProfile: AWSEncodableShape & AWSDecodableShape {
        /// The content type for a field-level encryption content type-profile mapping.
        public let contentType: String
        /// The format for a field-level encryption content type-profile mapping.
        public let format: Format
        /// The profile ID for a field-level encryption content type-profile mapping.
        public let profileId: String?

        public init(contentType: String, format: Format, profileId: String? = nil) {
            self.contentType = contentType
            self.format = format
            self.profileId = profileId
        }

        private enum CodingKeys: String, CodingKey {
            case contentType = "ContentType"
            case format = "Format"
            case profileId = "ProfileId"
        }
    }

    public struct ContentTypeProfileConfig: AWSEncodableShape & AWSDecodableShape {
        /// The configuration for a field-level encryption content type-profile.
        public let contentTypeProfiles: ContentTypeProfiles?
        /// The setting in a field-level encryption content type-profile mapping that specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown.
        public let forwardWhenContentTypeIsUnknown: Bool

        public init(contentTypeProfiles: ContentTypeProfiles? = nil, forwardWhenContentTypeIsUnknown: Bool) {
            self.contentTypeProfiles = contentTypeProfiles
            self.forwardWhenContentTypeIsUnknown = forwardWhenContentTypeIsUnknown
        }

        private enum CodingKeys: String, CodingKey {
            case contentTypeProfiles = "ContentTypeProfiles"
            case forwardWhenContentTypeIsUnknown = "ForwardWhenContentTypeIsUnknown"
        }
    }

    public struct ContentTypeProfiles: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "ContentTypeProfile" }

        /// Items in a field-level encryption content type-profile mapping.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, ContentTypeProfile>>
        public var items: [ContentTypeProfile]?
        /// The number of field-level encryption content type-profile mappings.
        public let quantity: Int

        public init(items: [ContentTypeProfile]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct CookieNames: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Name" }

        /// A list of cookie names.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The number of cookie names in the Items list.
        public let quantity: Int

        public init(items: [String]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct CreateCachePolicyRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cachePolicyConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "cachePolicyConfig", location: .body(locationName: "CachePolicyConfig"))
        ]

        /// A cache policy configuration.
        public let cachePolicyConfig: CachePolicyConfig

        public init(cachePolicyConfig: CachePolicyConfig) {
            self.cachePolicyConfig = cachePolicyConfig
        }

        private enum CodingKeys: String, CodingKey {
            case cachePolicyConfig = "CachePolicyConfig"
        }
    }

    public struct CreateCachePolicyResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cachePolicy"
        public static var _encoding = [
            AWSMemberEncoding(label: "cachePolicy", location: .body(locationName: "CachePolicy")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location"))
        ]

        /// A cache policy.
        public let cachePolicy: CachePolicy?
        /// The current version of the cache policy.
        public let eTag: String?
        /// The fully qualified URI of the cache policy just created.
        public let location: String?

        public init(cachePolicy: CachePolicy? = nil, eTag: String? = nil, location: String? = nil) {
            self.cachePolicy = cachePolicy
            self.eTag = eTag
            self.location = location
        }

        private enum CodingKeys: String, CodingKey {
            case cachePolicy = "CachePolicy"
            case eTag = "ETag"
            case location = "Location"
        }
    }

    public struct CreateCloudFrontOriginAccessIdentityRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cloudFrontOriginAccessIdentityConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "cloudFrontOriginAccessIdentityConfig", location: .body(locationName: "CloudFrontOriginAccessIdentityConfig"))
        ]

        /// The current configuration information for the identity.
        public let cloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig

        public init(cloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig) {
            self.cloudFrontOriginAccessIdentityConfig = cloudFrontOriginAccessIdentityConfig
        }

        private enum CodingKeys: String, CodingKey {
            case cloudFrontOriginAccessIdentityConfig = "CloudFrontOriginAccessIdentityConfig"
        }
    }

    public struct CreateCloudFrontOriginAccessIdentityResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cloudFrontOriginAccessIdentity"
        public static var _encoding = [
            AWSMemberEncoding(label: "cloudFrontOriginAccessIdentity", location: .body(locationName: "CloudFrontOriginAccessIdentity")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location"))
        ]

        /// The origin access identity's information.
        public let cloudFrontOriginAccessIdentity: CloudFrontOriginAccessIdentity?
        /// The current version of the origin access identity created.
        public let eTag: String?
        /// The fully qualified URI of the new origin access identity just created.
        public let location: String?

        public init(cloudFrontOriginAccessIdentity: CloudFrontOriginAccessIdentity? = nil, eTag: String? = nil, location: String? = nil) {
            self.cloudFrontOriginAccessIdentity = cloudFrontOriginAccessIdentity
            self.eTag = eTag
            self.location = location
        }

        private enum CodingKeys: String, CodingKey {
            case cloudFrontOriginAccessIdentity = "CloudFrontOriginAccessIdentity"
            case eTag = "ETag"
            case location = "Location"
        }
    }

    public struct CreateDistributionRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionConfig", location: .body(locationName: "DistributionConfig"))
        ]

        /// The distribution's configuration information.
        public let distributionConfig: DistributionConfig

        public init(distributionConfig: DistributionConfig) {
            self.distributionConfig = distributionConfig
        }

        public func validate(name: String) throws {
            try self.distributionConfig.validate(name: "\(name).distributionConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case distributionConfig = "DistributionConfig"
        }
    }

    public struct CreateDistributionResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distribution"
        public static var _encoding = [
            AWSMemberEncoding(label: "distribution", location: .body(locationName: "Distribution")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location"))
        ]

        /// The distribution's information.
        public let distribution: Distribution?
        /// The current version of the distribution created.
        public let eTag: String?
        /// The fully qualified URI of the new distribution resource just created.
        public let location: String?

        public init(distribution: Distribution? = nil, eTag: String? = nil, location: String? = nil) {
            self.distribution = distribution
            self.eTag = eTag
            self.location = location
        }

        private enum CodingKeys: String, CodingKey {
            case distribution = "Distribution"
            case eTag = "ETag"
            case location = "Location"
        }
    }

    public struct CreateDistributionWithTagsRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionConfigWithTags"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionConfigWithTags", location: .body(locationName: "DistributionConfigWithTags"))
        ]

        /// The distribution's configuration information.
        public let distributionConfigWithTags: DistributionConfigWithTags

        public init(distributionConfigWithTags: DistributionConfigWithTags) {
            self.distributionConfigWithTags = distributionConfigWithTags
        }

        public func validate(name: String) throws {
            try self.distributionConfigWithTags.validate(name: "\(name).distributionConfigWithTags")
        }

        private enum CodingKeys: String, CodingKey {
            case distributionConfigWithTags = "DistributionConfigWithTags"
        }
    }

    public struct CreateDistributionWithTagsResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distribution"
        public static var _encoding = [
            AWSMemberEncoding(label: "distribution", location: .body(locationName: "Distribution")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location"))
        ]

        /// The distribution's information.
        public let distribution: Distribution?
        /// The current version of the distribution created.
        public let eTag: String?
        /// The fully qualified URI of the new distribution resource just created.
        public let location: String?

        public init(distribution: Distribution? = nil, eTag: String? = nil, location: String? = nil) {
            self.distribution = distribution
            self.eTag = eTag
            self.location = location
        }

        private enum CodingKeys: String, CodingKey {
            case distribution = "Distribution"
            case eTag = "ETag"
            case location = "Location"
        }
    }

    public struct CreateFieldLevelEncryptionConfigRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "fieldLevelEncryptionConfig", location: .body(locationName: "FieldLevelEncryptionConfig"))
        ]

        /// The request to create a new field-level encryption configuration.
        public let fieldLevelEncryptionConfig: FieldLevelEncryptionConfig

        public init(fieldLevelEncryptionConfig: FieldLevelEncryptionConfig) {
            self.fieldLevelEncryptionConfig = fieldLevelEncryptionConfig
        }

        private enum CodingKeys: String, CodingKey {
            case fieldLevelEncryptionConfig = "FieldLevelEncryptionConfig"
        }
    }

    public struct CreateFieldLevelEncryptionConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryption"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "fieldLevelEncryption", location: .body(locationName: "FieldLevelEncryption")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location"))
        ]

        /// The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// Returned when you create a new field-level encryption configuration.
        public let fieldLevelEncryption: FieldLevelEncryption?
        /// The fully qualified URI of the new configuration resource just created.
        public let location: String?

        public init(eTag: String? = nil, fieldLevelEncryption: FieldLevelEncryption? = nil, location: String? = nil) {
            self.eTag = eTag
            self.fieldLevelEncryption = fieldLevelEncryption
            self.location = location
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case fieldLevelEncryption = "FieldLevelEncryption"
            case location = "Location"
        }
    }

    public struct CreateFieldLevelEncryptionProfileRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionProfileConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "fieldLevelEncryptionProfileConfig", location: .body(locationName: "FieldLevelEncryptionProfileConfig"))
        ]

        /// The request to create a field-level encryption profile.
        public let fieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig

        public init(fieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig) {
            self.fieldLevelEncryptionProfileConfig = fieldLevelEncryptionProfileConfig
        }

        private enum CodingKeys: String, CodingKey {
            case fieldLevelEncryptionProfileConfig = "FieldLevelEncryptionProfileConfig"
        }
    }

    public struct CreateFieldLevelEncryptionProfileResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionProfile"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "fieldLevelEncryptionProfile", location: .body(locationName: "FieldLevelEncryptionProfile")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location"))
        ]

        /// The current version of the field level encryption profile. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// Returned when you create a new field-level encryption profile.
        public let fieldLevelEncryptionProfile: FieldLevelEncryptionProfile?
        /// The fully qualified URI of the new profile resource just created.
        public let location: String?

        public init(eTag: String? = nil, fieldLevelEncryptionProfile: FieldLevelEncryptionProfile? = nil, location: String? = nil) {
            self.eTag = eTag
            self.fieldLevelEncryptionProfile = fieldLevelEncryptionProfile
            self.location = location
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case fieldLevelEncryptionProfile = "FieldLevelEncryptionProfile"
            case location = "Location"
        }
    }

    public struct CreateInvalidationRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "invalidationBatch"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionId", location: .uri(locationName: "DistributionId")),
            AWSMemberEncoding(label: "invalidationBatch", location: .body(locationName: "InvalidationBatch"))
        ]

        /// The distribution's id.
        public let distributionId: String
        /// The batch information for the invalidation.
        public let invalidationBatch: InvalidationBatch

        public init(distributionId: String, invalidationBatch: InvalidationBatch) {
            self.distributionId = distributionId
            self.invalidationBatch = invalidationBatch
        }

        private enum CodingKeys: String, CodingKey {
            case invalidationBatch = "InvalidationBatch"
        }
    }

    public struct CreateInvalidationResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "invalidation"
        public static var _encoding = [
            AWSMemberEncoding(label: "invalidation", location: .body(locationName: "Invalidation")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location"))
        ]

        /// The invalidation's information.
        public let invalidation: Invalidation?
        /// The fully qualified URI of the distribution and invalidation batch request, including the Invalidation ID.
        public let location: String?

        public init(invalidation: Invalidation? = nil, location: String? = nil) {
            self.invalidation = invalidation
            self.location = location
        }

        private enum CodingKeys: String, CodingKey {
            case invalidation = "Invalidation"
            case location = "Location"
        }
    }

    public struct CreateKeyGroupRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "keyGroupConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "keyGroupConfig", location: .body(locationName: "KeyGroupConfig"))
        ]

        /// A key group configuration.
        public let keyGroupConfig: KeyGroupConfig

        public init(keyGroupConfig: KeyGroupConfig) {
            self.keyGroupConfig = keyGroupConfig
        }

        private enum CodingKeys: String, CodingKey {
            case keyGroupConfig = "KeyGroupConfig"
        }
    }

    public struct CreateKeyGroupResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "keyGroup"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "keyGroup", location: .body(locationName: "KeyGroup")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location"))
        ]

        /// The identifier for this version of the key group.
        public let eTag: String?
        /// The key group that was just created.
        public let keyGroup: KeyGroup?
        /// The URL of the key group.
        public let location: String?

        public init(eTag: String? = nil, keyGroup: KeyGroup? = nil, location: String? = nil) {
            self.eTag = eTag
            self.keyGroup = keyGroup
            self.location = location
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case keyGroup = "KeyGroup"
            case location = "Location"
        }
    }

    public struct CreateMonitoringSubscriptionRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "monitoringSubscription"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionId", location: .uri(locationName: "DistributionId")),
            AWSMemberEncoding(label: "monitoringSubscription", location: .body(locationName: "MonitoringSubscription"))
        ]

        /// The ID of the distribution that you are enabling metrics for.
        public let distributionId: String
        /// A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
        public let monitoringSubscription: MonitoringSubscription

        public init(distributionId: String, monitoringSubscription: MonitoringSubscription) {
            self.distributionId = distributionId
            self.monitoringSubscription = monitoringSubscription
        }

        private enum CodingKeys: String, CodingKey {
            case monitoringSubscription = "MonitoringSubscription"
        }
    }

    public struct CreateMonitoringSubscriptionResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "monitoringSubscription"
        public static var _encoding = [
            AWSMemberEncoding(label: "monitoringSubscription", location: .body(locationName: "MonitoringSubscription"))
        ]

        /// A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
        public let monitoringSubscription: MonitoringSubscription?

        public init(monitoringSubscription: MonitoringSubscription? = nil) {
            self.monitoringSubscription = monitoringSubscription
        }

        private enum CodingKeys: String, CodingKey {
            case monitoringSubscription = "MonitoringSubscription"
        }
    }

    public struct CreateOriginRequestPolicyRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "originRequestPolicyConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "originRequestPolicyConfig", location: .body(locationName: "OriginRequestPolicyConfig"))
        ]

        /// An origin request policy configuration.
        public let originRequestPolicyConfig: OriginRequestPolicyConfig

        public init(originRequestPolicyConfig: OriginRequestPolicyConfig) {
            self.originRequestPolicyConfig = originRequestPolicyConfig
        }

        private enum CodingKeys: String, CodingKey {
            case originRequestPolicyConfig = "OriginRequestPolicyConfig"
        }
    }

    public struct CreateOriginRequestPolicyResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "originRequestPolicy"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location")),
            AWSMemberEncoding(label: "originRequestPolicy", location: .body(locationName: "OriginRequestPolicy"))
        ]

        /// The current version of the origin request policy.
        public let eTag: String?
        /// The fully qualified URI of the origin request policy just created.
        public let location: String?
        /// An origin request policy.
        public let originRequestPolicy: OriginRequestPolicy?

        public init(eTag: String? = nil, location: String? = nil, originRequestPolicy: OriginRequestPolicy? = nil) {
            self.eTag = eTag
            self.location = location
            self.originRequestPolicy = originRequestPolicy
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case location = "Location"
            case originRequestPolicy = "OriginRequestPolicy"
        }
    }

    public struct CreatePublicKeyRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "publicKeyConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "publicKeyConfig", location: .body(locationName: "PublicKeyConfig"))
        ]

        /// A CloudFront public key configuration.
        public let publicKeyConfig: PublicKeyConfig

        public init(publicKeyConfig: PublicKeyConfig) {
            self.publicKeyConfig = publicKeyConfig
        }

        private enum CodingKeys: String, CodingKey {
            case publicKeyConfig = "PublicKeyConfig"
        }
    }

    public struct CreatePublicKeyResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "publicKey"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location")),
            AWSMemberEncoding(label: "publicKey", location: .body(locationName: "PublicKey"))
        ]

        /// The identifier for this version of the public key.
        public let eTag: String?
        /// The URL of the public key.
        public let location: String?
        /// The public key.
        public let publicKey: PublicKey?

        public init(eTag: String? = nil, location: String? = nil, publicKey: PublicKey? = nil) {
            self.eTag = eTag
            self.location = location
            self.publicKey = publicKey
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case location = "Location"
            case publicKey = "PublicKey"
        }
    }

    public struct CreateRealtimeLogConfigRequest: AWSEncodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"
        public struct _FieldsEncoding: ArrayCoderProperties { public static let member = "Field" }

        /// Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
        @CustomCoding<StandardArrayCoder>
        public var endPoints: [EndPoint]
        /// A list of fields to include in each real-time log record. For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
        @CustomCoding<ArrayCoder<_FieldsEncoding, String>>
        public var fields: [String]
        /// A unique name to identify this real-time log configuration.
        public let name: String
        /// The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive.
        public let samplingRate: Int64

        public init(endPoints: [EndPoint], fields: [String], name: String, samplingRate: Int64) {
            self.endPoints = endPoints
            self.fields = fields
            self.name = name
            self.samplingRate = samplingRate
        }

        private enum CodingKeys: String, CodingKey {
            case endPoints = "EndPoints"
            case fields = "Fields"
            case name = "Name"
            case samplingRate = "SamplingRate"
        }
    }

    public struct CreateRealtimeLogConfigResult: AWSDecodableShape {
        /// A real-time log configuration.
        public let realtimeLogConfig: RealtimeLogConfig?

        public init(realtimeLogConfig: RealtimeLogConfig? = nil) {
            self.realtimeLogConfig = realtimeLogConfig
        }

        private enum CodingKeys: String, CodingKey {
            case realtimeLogConfig = "RealtimeLogConfig"
        }
    }

    public struct CreateStreamingDistributionRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "streamingDistributionConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "streamingDistributionConfig", location: .body(locationName: "StreamingDistributionConfig"))
        ]

        /// The streaming distribution's configuration information.
        public let streamingDistributionConfig: StreamingDistributionConfig

        public init(streamingDistributionConfig: StreamingDistributionConfig) {
            self.streamingDistributionConfig = streamingDistributionConfig
        }

        private enum CodingKeys: String, CodingKey {
            case streamingDistributionConfig = "StreamingDistributionConfig"
        }
    }

    public struct CreateStreamingDistributionResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "streamingDistribution"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location")),
            AWSMemberEncoding(label: "streamingDistribution", location: .body(locationName: "StreamingDistribution"))
        ]

        /// The current version of the streaming distribution created.
        public let eTag: String?
        /// The fully qualified URI of the new streaming distribution resource just created.
        public let location: String?
        /// The streaming distribution's information.
        public let streamingDistribution: StreamingDistribution?

        public init(eTag: String? = nil, location: String? = nil, streamingDistribution: StreamingDistribution? = nil) {
            self.eTag = eTag
            self.location = location
            self.streamingDistribution = streamingDistribution
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case location = "Location"
            case streamingDistribution = "StreamingDistribution"
        }
    }

    public struct CreateStreamingDistributionWithTagsRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "streamingDistributionConfigWithTags"
        public static var _encoding = [
            AWSMemberEncoding(label: "streamingDistributionConfigWithTags", location: .body(locationName: "StreamingDistributionConfigWithTags"))
        ]

        ///  The streaming distribution's configuration information.
        public let streamingDistributionConfigWithTags: StreamingDistributionConfigWithTags

        public init(streamingDistributionConfigWithTags: StreamingDistributionConfigWithTags) {
            self.streamingDistributionConfigWithTags = streamingDistributionConfigWithTags
        }

        public func validate(name: String) throws {
            try self.streamingDistributionConfigWithTags.validate(name: "\(name).streamingDistributionConfigWithTags")
        }

        private enum CodingKeys: String, CodingKey {
            case streamingDistributionConfigWithTags = "StreamingDistributionConfigWithTags"
        }
    }

    public struct CreateStreamingDistributionWithTagsResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "streamingDistribution"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "location", location: .header(locationName: "Location")),
            AWSMemberEncoding(label: "streamingDistribution", location: .body(locationName: "StreamingDistribution"))
        ]

        /// The current version of the distribution created.
        public let eTag: String?
        /// The fully qualified URI of the new streaming distribution resource just created.
        public let location: String?
        /// The streaming distribution's information.
        public let streamingDistribution: StreamingDistribution?

        public init(eTag: String? = nil, location: String? = nil, streamingDistribution: StreamingDistribution? = nil) {
            self.eTag = eTag
            self.location = location
            self.streamingDistribution = streamingDistribution
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case location = "Location"
            case streamingDistribution = "StreamingDistribution"
        }
    }

    public struct CustomErrorResponse: AWSEncodableShape & AWSDecodableShape {
        /// The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode. When this time period has elapsed, CloudFront queries your origin to see whether the problem that caused the error has been resolved and the requested object is now available. For more information, see Customizing Error Responses in the Amazon CloudFront Developer Guide.
        public let errorCachingMinTTL: Int64?
        /// The HTTP status code for which you want to specify a custom error page and/or a caching duration.
        public let errorCode: Int
        /// The HTTP status code that you want CloudFront to return to the viewer along with the custom error page. There are a variety of reasons that you might want CloudFront to return a status code different from the status code that your origin returned to CloudFront, for example:   Some Internet devices (some firewalls and corporate proxies, for example) intercept HTTP 4xx and 5xx and prevent the response from being returned to the viewer. If you substitute 200, the response typically won't be intercepted.   If you don't care about distinguishing among different client errors or server errors, you can specify 400 or 500 as the ResponseCode for all 4xx or 5xx errors.   You might want to return a 200 status code (OK) and static website so your customers don't know that your website is down.   If you specify a value for ResponseCode, you must also specify a value for ResponsePagePath.
        public let responseCode: String?
        /// The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the HTTP status code specified by ErrorCode, for example, /4xx-errors/403-forbidden.html. If you want to store your objects and your custom error pages in different locations, your distribution must include a cache behavior for which the following is true:   The value of PathPattern matches the path to your custom error messages. For example, suppose you saved custom error pages for 4xx errors in an Amazon S3 bucket in a directory named /4xx-errors. Your distribution must include a cache behavior for which the path pattern routes requests for your custom error pages to that location, for example, /4xx-errors/*.    The value of TargetOriginId specifies the value of the ID element for the origin that contains your custom error pages.   If you specify a value for ResponsePagePath, you must also specify a value for ResponseCode. We recommend that you store custom error pages in an Amazon S3 bucket. If you store custom error pages on an HTTP server and the server starts to return 5xx errors, CloudFront can't get the files that you want to return to viewers because the origin server is unavailable.
        public let responsePagePath: String?

        public init(errorCachingMinTTL: Int64? = nil, errorCode: Int, responseCode: String? = nil, responsePagePath: String? = nil) {
            self.errorCachingMinTTL = errorCachingMinTTL
            self.errorCode = errorCode
            self.responseCode = responseCode
            self.responsePagePath = responsePagePath
        }

        private enum CodingKeys: String, CodingKey {
            case errorCachingMinTTL = "ErrorCachingMinTTL"
            case errorCode = "ErrorCode"
            case responseCode = "ResponseCode"
            case responsePagePath = "ResponsePagePath"
        }
    }

    public struct CustomErrorResponses: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "CustomErrorResponse" }

        /// A complex type that contains a CustomErrorResponse element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, CustomErrorResponse>>
        public var items: [CustomErrorResponse]?
        /// The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If Quantity is 0, you can omit Items.
        public let quantity: Int

        public init(items: [CustomErrorResponse]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct CustomHeaders: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "OriginCustomHeader" }

        ///  Optional: A list that contains one OriginCustomHeader element for each custom header that you want CloudFront to forward to the origin. If Quantity is 0, omit Items.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, OriginCustomHeader>>
        public var items: [OriginCustomHeader]?
        /// The number of custom headers, if any, for this distribution.
        public let quantity: Int

        public init(items: [OriginCustomHeader]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct CustomOriginConfig: AWSEncodableShape & AWSDecodableShape {
        /// The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
        public let hTTPPort: Int
        /// The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
        public let hTTPSPort: Int
        /// Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don’t specify otherwise) is 5 seconds. For more information, see Origin Keep-alive Timeout in the Amazon CloudFront Developer Guide.
        public let originKeepaliveTimeout: Int?
        /// Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:    http-only – CloudFront always uses HTTP to connect to the origin.    match-viewer – CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront.    https-only – CloudFront always uses HTTPS to connect to the origin.
        public let originProtocolPolicy: OriginProtocolPolicy
        /// Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the origin response timeout. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don’t specify otherwise) is 30 seconds. For more information, see Origin Response Timeout in the Amazon CloudFront Developer Guide.
        public let originReadTimeout: Int?
        /// Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values include SSLv3, TLSv1, TLSv1.1, and TLSv1.2. For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide.
        public let originSslProtocols: OriginSslProtocols?

        public init(hTTPPort: Int, hTTPSPort: Int, originKeepaliveTimeout: Int? = nil, originProtocolPolicy: OriginProtocolPolicy, originReadTimeout: Int? = nil, originSslProtocols: OriginSslProtocols? = nil) {
            self.hTTPPort = hTTPPort
            self.hTTPSPort = hTTPSPort
            self.originKeepaliveTimeout = originKeepaliveTimeout
            self.originProtocolPolicy = originProtocolPolicy
            self.originReadTimeout = originReadTimeout
            self.originSslProtocols = originSslProtocols
        }

        private enum CodingKeys: String, CodingKey {
            case hTTPPort = "HTTPPort"
            case hTTPSPort = "HTTPSPort"
            case originKeepaliveTimeout = "OriginKeepaliveTimeout"
            case originProtocolPolicy = "OriginProtocolPolicy"
            case originReadTimeout = "OriginReadTimeout"
            case originSslProtocols = "OriginSslProtocols"
        }
    }

    public struct DefaultCacheBehavior: AWSEncodableShape & AWSDecodableShape {
        public let allowedMethods: AllowedMethods?
        /// The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
        public let cachePolicyId: String?
        /// Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.
        public let compress: Bool?
        /// The value of ID for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
        public let fieldLevelEncryptionId: String?
        /// A complex type that contains zero or more Lambda function associations for a cache behavior.
        public let lambdaFunctionAssociations: LambdaFunctionAssociations?
        /// The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
        public let originRequestPolicyId: String?
        /// The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
        public let realtimeLogConfigArn: String?
        /// Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false. If you specify true for SmoothStreaming, you can still distribute other content using this cache behavior if the content matches the value of PathPattern.
        public let smoothStreaming: Bool?
        /// The value of ID for the origin that you want CloudFront to route requests to when they use the default cache behavior.
        public let targetOriginId: String
        /// A list of key groups that CloudFront can use to validate signed URLs or signed cookies. When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
        public let trustedKeyGroups: TrustedKeyGroups?
        ///  We recommend using TrustedKeyGroups instead of TrustedSigners.  A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies. When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer’s AWS account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
        public let trustedSigners: TrustedSigners?
        /// The protocol that viewers can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. You can specify the following options:    allow-all: Viewers can use HTTP or HTTPS.    redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.    https-only: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).   For more information about requiring the HTTPS protocol, see Requiring HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer Guide.  The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing Cache Expiration in the Amazon CloudFront Developer Guide.
        public let viewerProtocolPolicy: ViewerProtocolPolicy

        public init(allowedMethods: AllowedMethods? = nil, cachePolicyId: String? = nil, compress: Bool? = nil, fieldLevelEncryptionId: String? = nil, lambdaFunctionAssociations: LambdaFunctionAssociations? = nil, originRequestPolicyId: String? = nil, realtimeLogConfigArn: String? = nil, smoothStreaming: Bool? = nil, targetOriginId: String, trustedKeyGroups: TrustedKeyGroups? = nil, trustedSigners: TrustedSigners? = nil, viewerProtocolPolicy: ViewerProtocolPolicy) {
            self.allowedMethods = allowedMethods
            self.cachePolicyId = cachePolicyId
            self.compress = compress
            self.fieldLevelEncryptionId = fieldLevelEncryptionId
            self.lambdaFunctionAssociations = lambdaFunctionAssociations
            self.originRequestPolicyId = originRequestPolicyId
            self.realtimeLogConfigArn = realtimeLogConfigArn
            self.smoothStreaming = smoothStreaming
            self.targetOriginId = targetOriginId
            self.trustedKeyGroups = trustedKeyGroups
            self.trustedSigners = trustedSigners
            self.viewerProtocolPolicy = viewerProtocolPolicy
        }

        private enum CodingKeys: String, CodingKey {
            case allowedMethods = "AllowedMethods"
            case cachePolicyId = "CachePolicyId"
            case compress = "Compress"
            case fieldLevelEncryptionId = "FieldLevelEncryptionId"
            case lambdaFunctionAssociations = "LambdaFunctionAssociations"
            case originRequestPolicyId = "OriginRequestPolicyId"
            case realtimeLogConfigArn = "RealtimeLogConfigArn"
            case smoothStreaming = "SmoothStreaming"
            case targetOriginId = "TargetOriginId"
            case trustedKeyGroups = "TrustedKeyGroups"
            case trustedSigners = "TrustedSigners"
            case viewerProtocolPolicy = "ViewerProtocolPolicy"
        }
    }

    public struct DeleteCachePolicyRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The unique identifier for the cache policy that you are deleting. To get the identifier, you can use ListCachePolicies.
        public let id: String
        /// The version of the cache policy that you are deleting. The version is the cache policy’s ETag value, which you can get using ListCachePolicies, GetCachePolicy, or GetCachePolicyConfig.
        public let ifMatch: String?

        public init(id: String, ifMatch: String? = nil) {
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteCloudFrontOriginAccessIdentityRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The origin access identity's ID.
        public let id: String
        /// The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(id: String, ifMatch: String? = nil) {
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteDistributionRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The distribution ID.
        public let id: String
        /// The value of the ETag header that you received when you disabled the distribution. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(id: String, ifMatch: String? = nil) {
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteFieldLevelEncryptionConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The ID of the configuration you want to delete from CloudFront.
        public let id: String
        /// The value of the ETag header that you received when retrieving the configuration identity to delete. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(id: String, ifMatch: String? = nil) {
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteFieldLevelEncryptionProfileRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// Request the ID of the profile you want to delete from CloudFront.
        public let id: String
        /// The value of the ETag header that you received when retrieving the profile to delete. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(id: String, ifMatch: String? = nil) {
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteKeyGroupRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The identifier of the key group that you are deleting. To get the identifier, use ListKeyGroups.
        public let id: String
        /// The version of the key group that you are deleting. The version is the key group’s ETag value. To get the ETag, use GetKeyGroup or GetKeyGroupConfig.
        public let ifMatch: String?

        public init(id: String, ifMatch: String? = nil) {
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteMonitoringSubscriptionRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionId", location: .uri(locationName: "DistributionId"))
        ]

        /// The ID of the distribution that you are disabling metrics for.
        public let distributionId: String

        public init(distributionId: String) {
            self.distributionId = distributionId
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteMonitoringSubscriptionResult: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteOriginRequestPolicyRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The unique identifier for the origin request policy that you are deleting. To get the identifier, you can use ListOriginRequestPolicies.
        public let id: String
        /// The version of the origin request policy that you are deleting. The version is the origin request policy’s ETag value, which you can get using ListOriginRequestPolicies, GetOriginRequestPolicy, or GetOriginRequestPolicyConfig.
        public let ifMatch: String?

        public init(id: String, ifMatch: String? = nil) {
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeletePublicKeyRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The ID of the public key you want to remove from CloudFront.
        public let id: String
        /// The value of the ETag header that you received when retrieving the public key identity to delete. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(id: String, ifMatch: String? = nil) {
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteRealtimeLogConfigRequest: AWSEncodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// The Amazon Resource Name (ARN) of the real-time log configuration to delete.
        public let arn: String?
        /// The name of the real-time log configuration to delete.
        public let name: String?

        public init(arn: String? = nil, name: String? = nil) {
            self.arn = arn
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case name = "Name"
        }
    }

    public struct DeleteStreamingDistributionRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The distribution ID.
        public let id: String
        /// The value of the ETag header that you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(id: String, ifMatch: String? = nil) {
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct Distribution: AWSDecodableShape {
        public struct _AliasICPRecordalsEncoding: ArrayCoderProperties { public static let member = "AliasICPRecordal" }

        /// CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using key groups. This field contains a list of key groups and the public keys in each key group that CloudFront can use to verify the signatures of signed URLs or signed cookies.
        public let activeTrustedKeyGroups: ActiveTrustedKeyGroups?
        ///  We recommend using TrustedKeyGroups instead of TrustedSigners.  CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using trusted signers. This field contains a list of AWS account IDs and the active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs or signed cookies.
        public let activeTrustedSigners: ActiveTrustedSigners?
        /// AWS services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions. For more information about ICP recordals, see  Signup, Accounts, and Credentials in Getting Started with AWS services in China.
        @OptionalCustomCoding<ArrayCoder<_AliasICPRecordalsEncoding, AliasICPRecordal>>
        public var aliasICPRecordals: [AliasICPRecordal]?
        /// The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
        public let arn: String
        /// The current configuration information for the distribution. Send a GET request to the /CloudFront API version/distribution ID/config resource.
        public let distributionConfig: DistributionConfig
        /// The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net.
        public let domainName: String
        /// The identifier for the distribution. For example: EDFDVBD632BHDS5.
        public let id: String
        /// The number of invalidation batches currently in progress.
        public let inProgressInvalidationBatches: Int
        /// The date and time the distribution was last modified.
        public let lastModifiedTime: Date
        /// This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated to all CloudFront edge locations.
        public let status: String

        public init(activeTrustedKeyGroups: ActiveTrustedKeyGroups? = nil, activeTrustedSigners: ActiveTrustedSigners? = nil, aliasICPRecordals: [AliasICPRecordal]? = nil, arn: String, distributionConfig: DistributionConfig, domainName: String, id: String, inProgressInvalidationBatches: Int, lastModifiedTime: Date, status: String) {
            self.activeTrustedKeyGroups = activeTrustedKeyGroups
            self.activeTrustedSigners = activeTrustedSigners
            self.aliasICPRecordals = aliasICPRecordals
            self.arn = arn
            self.distributionConfig = distributionConfig
            self.domainName = domainName
            self.id = id
            self.inProgressInvalidationBatches = inProgressInvalidationBatches
            self.lastModifiedTime = lastModifiedTime
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case activeTrustedKeyGroups = "ActiveTrustedKeyGroups"
            case activeTrustedSigners = "ActiveTrustedSigners"
            case aliasICPRecordals = "AliasICPRecordals"
            case arn = "ARN"
            case distributionConfig = "DistributionConfig"
            case domainName = "DomainName"
            case id = "Id"
            case inProgressInvalidationBatches = "InProgressInvalidationBatches"
            case lastModifiedTime = "LastModifiedTime"
            case status = "Status"
        }
    }

    public struct DistributionConfig: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
        public let aliases: Aliases?
        /// A complex type that contains zero or more CacheBehavior elements.
        public let cacheBehaviors: CacheBehaviors?
        /// A unique value (for example, a date-time stamp) that ensures that the request can't be replayed. If the value of CallerReference is new (regardless of the content of the DistributionConfig object), CloudFront creates a new distribution. If CallerReference is a value that you already sent in a previous request to create a distribution, CloudFront returns a DistributionAlreadyExists error.
        public let callerReference: String
        /// Any comments you want to include about the distribution. If you don't want to specify a comment, include an empty Comment element. To delete an existing comment, update the distribution configuration and include an empty Comment element. To add or change a comment, update the distribution configuration and specify the new comment.
        public let comment: String
        /// A complex type that controls the following:   Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.   How long CloudFront caches HTTP status codes in the 4xx and 5xx range.   For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.
        public let customErrorResponses: CustomErrorResponses?
        /// A complex type that describes the default cache behavior if you don't specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior.
        public let defaultCacheBehavior: DefaultCacheBehavior
        /// The object that you want CloudFront to request from your origin (for example, index.html) when a viewer requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/product-description.html). Specifying a default root object avoids exposing the contents of your distribution. Specify only the object name, for example, index.html. Don't add a / before the object name. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object. For more information about the default root object, see Creating a Default Root Object in the Amazon CloudFront Developer Guide.
        public let defaultRootObject: String?
        /// From this field, you can enable or disable the selected distribution.
        public let enabled: Bool
        /// (Optional) Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 automatically use an earlier HTTP version. For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must support Server Name Identification (SNI). In general, configuring CloudFront to communicate with viewers using HTTP/2 reduces latency. You can improve performance by optimizing for HTTP/2. For more information, do an Internet search for "http/2 optimization."
        public let httpVersion: HttpVersion?
        /// If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify true. If you specify false, CloudFront responds to IPv6 DNS requests with the DNS response code NOERROR and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution.  In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the IpAddress parameter to restrict the IP addresses that can access your content, don't enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content (or restrict access but not by IP address), you can create two distributions. For more information, see Creating a Signed URL Using a Custom Policy in the Amazon CloudFront Developer Guide. If you're using an Amazon Route 53 alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true:   You enable IPv6 for the distribution   You're using alternate domain names in the URLs for your objects   For more information, see Routing Traffic to an Amazon CloudFront Web Distribution by Using Your Domain Name in the Amazon Route 53 Developer Guide. If you created a CNAME resource record set, either with Amazon Route 53 or with another DNS service, you don't need to make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request.
        public let isIPV6Enabled: Bool?
        /// A complex type that controls whether access logs are written for the distribution. For more information about logging, see Access Logs in the Amazon CloudFront Developer Guide.
        public let logging: LoggingConfig?
        ///  A complex type that contains information about origin groups for this distribution.
        public let originGroups: OriginGroups?
        /// A complex type that contains information about origins for this distribution.
        public let origins: Origins
        /// The price class that corresponds with the maximum price that you want to pay for CloudFront service. If you specify PriceClass_All, CloudFront responds to requests for your objects from all CloudFront edge locations. If you specify a price class other than PriceClass_All, CloudFront serves your objects from the CloudFront edge location that has the lowest latency among the edge locations in your price class. Viewers who are in or near regions that are excluded from your specified price class may encounter slower performance. For more information about price classes, see Choosing the Price Class for a CloudFront Distribution in the Amazon CloudFront Developer Guide. For information about CloudFront pricing, including how price classes (such as Price Class 100) map to CloudFront regions, see Amazon CloudFront Pricing.
        public let priceClass: PriceClass?
        /// A complex type that identifies ways in which you want to restrict distribution of your content.
        public let restrictions: Restrictions?
        /// A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers.
        public let viewerCertificate: ViewerCertificate?
        /// A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF, use the ACL ARN, for example arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example 473e64fd-f30b-4765-81a0-62ad96dd167a. AWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code (Forbidden). You can also configure CloudFront to return a custom error page when a request is blocked. For more information about AWS WAF, see the AWS WAF Developer Guide.
        public let webACLId: String?

        public init(aliases: Aliases? = nil, cacheBehaviors: CacheBehaviors? = nil, callerReference: String, comment: String, customErrorResponses: CustomErrorResponses? = nil, defaultCacheBehavior: DefaultCacheBehavior, defaultRootObject: String? = nil, enabled: Bool, httpVersion: HttpVersion? = nil, isIPV6Enabled: Bool? = nil, logging: LoggingConfig? = nil, originGroups: OriginGroups? = nil, origins: Origins, priceClass: PriceClass? = nil, restrictions: Restrictions? = nil, viewerCertificate: ViewerCertificate? = nil, webACLId: String? = nil) {
            self.aliases = aliases
            self.cacheBehaviors = cacheBehaviors
            self.callerReference = callerReference
            self.comment = comment
            self.customErrorResponses = customErrorResponses
            self.defaultCacheBehavior = defaultCacheBehavior
            self.defaultRootObject = defaultRootObject
            self.enabled = enabled
            self.httpVersion = httpVersion
            self.isIPV6Enabled = isIPV6Enabled
            self.logging = logging
            self.originGroups = originGroups
            self.origins = origins
            self.priceClass = priceClass
            self.restrictions = restrictions
            self.viewerCertificate = viewerCertificate
            self.webACLId = webACLId
        }

        public func validate(name: String) throws {
            try self.originGroups?.validate(name: "\(name).originGroups")
            try self.origins.validate(name: "\(name).origins")
        }

        private enum CodingKeys: String, CodingKey {
            case aliases = "Aliases"
            case cacheBehaviors = "CacheBehaviors"
            case callerReference = "CallerReference"
            case comment = "Comment"
            case customErrorResponses = "CustomErrorResponses"
            case defaultCacheBehavior = "DefaultCacheBehavior"
            case defaultRootObject = "DefaultRootObject"
            case enabled = "Enabled"
            case httpVersion = "HttpVersion"
            case isIPV6Enabled = "IsIPV6Enabled"
            case logging = "Logging"
            case originGroups = "OriginGroups"
            case origins = "Origins"
            case priceClass = "PriceClass"
            case restrictions = "Restrictions"
            case viewerCertificate = "ViewerCertificate"
            case webACLId = "WebACLId"
        }
    }

    public struct DistributionConfigWithTags: AWSEncodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A distribution configuration.
        public let distributionConfig: DistributionConfig
        /// A complex type that contains zero or more Tag elements.
        public let tags: Tags

        public init(distributionConfig: DistributionConfig, tags: Tags) {
            self.distributionConfig = distributionConfig
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.distributionConfig.validate(name: "\(name).distributionConfig")
            try self.tags.validate(name: "\(name).tags")
        }

        private enum CodingKeys: String, CodingKey {
            case distributionConfig = "DistributionConfig"
            case tags = "Tags"
        }
    }

    public struct DistributionIdList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "DistributionId" }

        /// A flag that indicates whether more distribution IDs remain to be listed. If your results were truncated, you can make a subsequent request using the Marker request field to retrieve more distribution IDs in the list.
        public let isTruncated: Bool
        /// Contains the distribution IDs in the list.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The value provided in the Marker request field.
        public let marker: String
        /// The maximum number of distribution IDs requested.
        public let maxItems: Int
        /// Contains the value that you should use in the Marker field of a subsequent request to continue listing distribution IDs where you left off.
        public let nextMarker: String?
        /// The total number of distribution IDs returned in the response.
        public let quantity: Int

        public init(isTruncated: Bool, items: [String]? = nil, marker: String, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.isTruncated = isTruncated
            self.items = items
            self.marker = marker
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case isTruncated = "IsTruncated"
            case items = "Items"
            case marker = "Marker"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct DistributionList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "DistributionSummary" }

        /// A flag that indicates whether more distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.
        public let isTruncated: Bool
        /// A complex type that contains one DistributionSummary element for each distribution that was created by the current AWS account.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, DistributionSummary>>
        public var items: [DistributionSummary]?
        /// The value you provided for the Marker request parameter.
        public let marker: String
        /// The value you provided for the MaxItems request parameter.
        public let maxItems: Int
        /// If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your distributions where they left off.
        public let nextMarker: String?
        /// The number of distributions that were created by the current AWS account.
        public let quantity: Int

        public init(isTruncated: Bool, items: [DistributionSummary]? = nil, marker: String, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.isTruncated = isTruncated
            self.items = items
            self.marker = marker
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case isTruncated = "IsTruncated"
            case items = "Items"
            case marker = "Marker"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct DistributionSummary: AWSDecodableShape {
        public struct _AliasICPRecordalsEncoding: ArrayCoderProperties { public static let member = "AliasICPRecordal" }

        /// A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
        public let aliases: Aliases
        /// AWS services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions. For more information about ICP recordals, see  Signup, Accounts, and Credentials in Getting Started with AWS services in China.
        @OptionalCustomCoding<ArrayCoder<_AliasICPRecordalsEncoding, AliasICPRecordal>>
        public var aliasICPRecordals: [AliasICPRecordal]?
        /// The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
        public let arn: String
        /// A complex type that contains zero or more CacheBehavior elements.
        public let cacheBehaviors: CacheBehaviors
        /// The comment originally specified when this distribution was created.
        public let comment: String
        /// A complex type that contains zero or more CustomErrorResponses elements.
        public let customErrorResponses: CustomErrorResponses
        /// A complex type that describes the default cache behavior if you don't specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior.
        public let defaultCacheBehavior: DefaultCacheBehavior
        /// The domain name that corresponds to the distribution, for example, d111111abcdef8.cloudfront.net.
        public let domainName: String
        /// Whether the distribution is enabled to accept user requests for content.
        public let enabled: Bool
        ///  Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 will automatically use an earlier version.
        public let httpVersion: HttpVersion
        /// The identifier for the distribution. For example: EDFDVBD632BHDS5.
        public let id: String
        /// Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
        public let isIPV6Enabled: Bool
        /// The date and time the distribution was last modified.
        public let lastModifiedTime: Date
        ///  A complex type that contains information about origin groups for this distribution.
        public let originGroups: OriginGroups?
        /// A complex type that contains information about origins for this distribution.
        public let origins: Origins
        /// A complex type that contains information about price class for this streaming distribution.
        public let priceClass: PriceClass
        /// A complex type that identifies ways in which you want to restrict distribution of your content.
        public let restrictions: Restrictions
        /// The current status of the distribution. When the status is Deployed, the distribution's information is propagated to all CloudFront edge locations.
        public let status: String
        /// A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers.
        public let viewerCertificate: ViewerCertificate
        /// The Web ACL Id (if any) associated with the distribution.
        public let webACLId: String

        public init(aliases: Aliases, aliasICPRecordals: [AliasICPRecordal]? = nil, arn: String, cacheBehaviors: CacheBehaviors, comment: String, customErrorResponses: CustomErrorResponses, defaultCacheBehavior: DefaultCacheBehavior, domainName: String, enabled: Bool, httpVersion: HttpVersion, id: String, isIPV6Enabled: Bool, lastModifiedTime: Date, originGroups: OriginGroups? = nil, origins: Origins, priceClass: PriceClass, restrictions: Restrictions, status: String, viewerCertificate: ViewerCertificate, webACLId: String) {
            self.aliases = aliases
            self.aliasICPRecordals = aliasICPRecordals
            self.arn = arn
            self.cacheBehaviors = cacheBehaviors
            self.comment = comment
            self.customErrorResponses = customErrorResponses
            self.defaultCacheBehavior = defaultCacheBehavior
            self.domainName = domainName
            self.enabled = enabled
            self.httpVersion = httpVersion
            self.id = id
            self.isIPV6Enabled = isIPV6Enabled
            self.lastModifiedTime = lastModifiedTime
            self.originGroups = originGroups
            self.origins = origins
            self.priceClass = priceClass
            self.restrictions = restrictions
            self.status = status
            self.viewerCertificate = viewerCertificate
            self.webACLId = webACLId
        }

        private enum CodingKeys: String, CodingKey {
            case aliases = "Aliases"
            case aliasICPRecordals = "AliasICPRecordals"
            case arn = "ARN"
            case cacheBehaviors = "CacheBehaviors"
            case comment = "Comment"
            case customErrorResponses = "CustomErrorResponses"
            case defaultCacheBehavior = "DefaultCacheBehavior"
            case domainName = "DomainName"
            case enabled = "Enabled"
            case httpVersion = "HttpVersion"
            case id = "Id"
            case isIPV6Enabled = "IsIPV6Enabled"
            case lastModifiedTime = "LastModifiedTime"
            case originGroups = "OriginGroups"
            case origins = "Origins"
            case priceClass = "PriceClass"
            case restrictions = "Restrictions"
            case status = "Status"
            case viewerCertificate = "ViewerCertificate"
            case webACLId = "WebACLId"
        }
    }

    public struct EncryptionEntities: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "EncryptionEntity" }

        /// An array of field patterns in a field-level encryption content type-profile mapping.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, EncryptionEntity>>
        public var items: [EncryptionEntity]?
        /// Number of field pattern items in a field-level encryption content type-profile mapping.
        public let quantity: Int

        public init(items: [EncryptionEntity]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct EncryptionEntity: AWSEncodableShape & AWSDecodableShape {
        /// Field patterns in a field-level encryption content type profile specify the fields that you want to be encrypted. You can provide the full field name, or any beginning characters followed by a wildcard (*). You can't overlap field patterns. For example, you can't have both ABC* and AB*. Note that field patterns are case-sensitive.
        public let fieldPatterns: FieldPatterns
        /// The provider associated with the public key being used for encryption. This value must also be provided with the private key for applications to be able to decrypt data.
        public let providerId: String
        /// The public key associated with a set of field-level encryption patterns, to be used when encrypting the fields that match the patterns.
        public let publicKeyId: String

        public init(fieldPatterns: FieldPatterns, providerId: String, publicKeyId: String) {
            self.fieldPatterns = fieldPatterns
            self.providerId = providerId
            self.publicKeyId = publicKeyId
        }

        private enum CodingKeys: String, CodingKey {
            case fieldPatterns = "FieldPatterns"
            case providerId = "ProviderId"
            case publicKeyId = "PublicKeyId"
        }
    }

    public struct EndPoint: AWSEncodableShape & AWSDecodableShape {
        /// Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
        public let kinesisStreamConfig: KinesisStreamConfig?
        /// The type of data stream where you are sending real-time log data. The only valid value is Kinesis.
        public let streamType: String

        public init(kinesisStreamConfig: KinesisStreamConfig? = nil, streamType: String) {
            self.kinesisStreamConfig = kinesisStreamConfig
            self.streamType = streamType
        }

        private enum CodingKeys: String, CodingKey {
            case kinesisStreamConfig = "KinesisStreamConfig"
            case streamType = "StreamType"
        }
    }

    public struct FieldLevelEncryption: AWSDecodableShape {
        /// A complex data type that includes the profile configurations specified for field-level encryption.
        public let fieldLevelEncryptionConfig: FieldLevelEncryptionConfig
        /// The configuration ID for a field-level encryption configuration which includes a set of profiles that specify certain selected data fields to be encrypted by specific public keys.
        public let id: String
        /// The last time the field-level encryption configuration was changed.
        public let lastModifiedTime: Date

        public init(fieldLevelEncryptionConfig: FieldLevelEncryptionConfig, id: String, lastModifiedTime: Date) {
            self.fieldLevelEncryptionConfig = fieldLevelEncryptionConfig
            self.id = id
            self.lastModifiedTime = lastModifiedTime
        }

        private enum CodingKeys: String, CodingKey {
            case fieldLevelEncryptionConfig = "FieldLevelEncryptionConfig"
            case id = "Id"
            case lastModifiedTime = "LastModifiedTime"
        }
    }

    public struct FieldLevelEncryptionConfig: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A unique number that ensures the request can't be replayed.
        public let callerReference: String
        /// An optional comment about the configuration.
        public let comment: String?
        /// A complex data type that specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
        public let contentTypeProfileConfig: ContentTypeProfileConfig?
        /// A complex data type that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.
        public let queryArgProfileConfig: QueryArgProfileConfig?

        public init(callerReference: String, comment: String? = nil, contentTypeProfileConfig: ContentTypeProfileConfig? = nil, queryArgProfileConfig: QueryArgProfileConfig? = nil) {
            self.callerReference = callerReference
            self.comment = comment
            self.contentTypeProfileConfig = contentTypeProfileConfig
            self.queryArgProfileConfig = queryArgProfileConfig
        }

        private enum CodingKeys: String, CodingKey {
            case callerReference = "CallerReference"
            case comment = "Comment"
            case contentTypeProfileConfig = "ContentTypeProfileConfig"
            case queryArgProfileConfig = "QueryArgProfileConfig"
        }
    }

    public struct FieldLevelEncryptionList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "FieldLevelEncryptionSummary" }

        /// An array of field-level encryption items.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, FieldLevelEncryptionSummary>>
        public var items: [FieldLevelEncryptionSummary]?
        /// The maximum number of elements you want in the response body.
        public let maxItems: Int
        /// If there are more elements to be listed, this element is present and contains the value that you can use for the Marker request parameter to continue listing your configurations where you left off.
        public let nextMarker: String?
        /// The number of field-level encryption items.
        public let quantity: Int

        public init(items: [FieldLevelEncryptionSummary]? = nil, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.items = items
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct FieldLevelEncryptionProfile: AWSDecodableShape {
        /// A complex data type that includes the profile name and the encryption entities for the field-level encryption profile.
        public let fieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig
        /// The ID for a field-level encryption profile configuration which includes a set of profiles that specify certain selected data fields to be encrypted by specific public keys.
        public let id: String
        /// The last time the field-level encryption profile was updated.
        public let lastModifiedTime: Date

        public init(fieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig, id: String, lastModifiedTime: Date) {
            self.fieldLevelEncryptionProfileConfig = fieldLevelEncryptionProfileConfig
            self.id = id
            self.lastModifiedTime = lastModifiedTime
        }

        private enum CodingKeys: String, CodingKey {
            case fieldLevelEncryptionProfileConfig = "FieldLevelEncryptionProfileConfig"
            case id = "Id"
            case lastModifiedTime = "LastModifiedTime"
        }
    }

    public struct FieldLevelEncryptionProfileConfig: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A unique number that ensures that the request can't be replayed.
        public let callerReference: String
        /// An optional comment for the field-level encryption profile.
        public let comment: String?
        /// A complex data type of encryption entities for the field-level encryption profile that include the public key ID, provider, and field patterns for specifying which fields to encrypt with this key.
        public let encryptionEntities: EncryptionEntities
        /// Profile name for the field-level encryption profile.
        public let name: String

        public init(callerReference: String, comment: String? = nil, encryptionEntities: EncryptionEntities, name: String) {
            self.callerReference = callerReference
            self.comment = comment
            self.encryptionEntities = encryptionEntities
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case callerReference = "CallerReference"
            case comment = "Comment"
            case encryptionEntities = "EncryptionEntities"
            case name = "Name"
        }
    }

    public struct FieldLevelEncryptionProfileList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "FieldLevelEncryptionProfileSummary" }

        /// The field-level encryption profile items.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, FieldLevelEncryptionProfileSummary>>
        public var items: [FieldLevelEncryptionProfileSummary]?
        /// The maximum number of field-level encryption profiles you want in the response body.
        public let maxItems: Int
        /// If there are more elements to be listed, this element is present and contains the value that you can use for the Marker request parameter to continue listing your profiles where you left off.
        public let nextMarker: String?
        /// The number of field-level encryption profiles.
        public let quantity: Int

        public init(items: [FieldLevelEncryptionProfileSummary]? = nil, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.items = items
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct FieldLevelEncryptionProfileSummary: AWSDecodableShape {
        /// An optional comment for the field-level encryption profile summary.
        public let comment: String?
        /// A complex data type of encryption entities for the field-level encryption profile that include the public key ID, provider, and field patterns for specifying which fields to encrypt with this key.
        public let encryptionEntities: EncryptionEntities
        /// ID for the field-level encryption profile summary.
        public let id: String
        /// The time when the the field-level encryption profile summary was last updated.
        public let lastModifiedTime: Date
        /// Name for the field-level encryption profile summary.
        public let name: String

        public init(comment: String? = nil, encryptionEntities: EncryptionEntities, id: String, lastModifiedTime: Date, name: String) {
            self.comment = comment
            self.encryptionEntities = encryptionEntities
            self.id = id
            self.lastModifiedTime = lastModifiedTime
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case comment = "Comment"
            case encryptionEntities = "EncryptionEntities"
            case id = "Id"
            case lastModifiedTime = "LastModifiedTime"
            case name = "Name"
        }
    }

    public struct FieldLevelEncryptionSummary: AWSDecodableShape {
        /// An optional comment about the field-level encryption item.
        public let comment: String?
        ///  A summary of a content type-profile mapping.
        public let contentTypeProfileConfig: ContentTypeProfileConfig?
        /// The unique ID of a field-level encryption item.
        public let id: String
        /// The last time that the summary of field-level encryption items was modified.
        public let lastModifiedTime: Date
        ///  A summary of a query argument-profile mapping.
        public let queryArgProfileConfig: QueryArgProfileConfig?

        public init(comment: String? = nil, contentTypeProfileConfig: ContentTypeProfileConfig? = nil, id: String, lastModifiedTime: Date, queryArgProfileConfig: QueryArgProfileConfig? = nil) {
            self.comment = comment
            self.contentTypeProfileConfig = contentTypeProfileConfig
            self.id = id
            self.lastModifiedTime = lastModifiedTime
            self.queryArgProfileConfig = queryArgProfileConfig
        }

        private enum CodingKeys: String, CodingKey {
            case comment = "Comment"
            case contentTypeProfileConfig = "ContentTypeProfileConfig"
            case id = "Id"
            case lastModifiedTime = "LastModifiedTime"
            case queryArgProfileConfig = "QueryArgProfileConfig"
        }
    }

    public struct FieldPatterns: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "FieldPattern" }

        /// An array of the field-level encryption field patterns.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The number of field-level encryption field patterns.
        public let quantity: Int

        public init(items: [String]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct GeoRestriction: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Location" }

        ///  A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list on the CloudFront console, which includes both country names and codes.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.
        public let quantity: Int
        /// The method that you want to use to restrict distribution of your content by country:    none: No geo restriction is enabled, meaning access to content is not restricted by client geo location.    blacklist: The Location elements specify the countries in which you don't want CloudFront to distribute your content.    whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.
        public let restrictionType: GeoRestrictionType

        public init(items: [String]? = nil, quantity: Int, restrictionType: GeoRestrictionType) {
            self.items = items
            self.quantity = quantity
            self.restrictionType = restrictionType
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
            case restrictionType = "RestrictionType"
        }
    }

    public struct GetCachePolicyConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The unique identifier for the cache policy. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetCachePolicyConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cachePolicyConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "cachePolicyConfig", location: .body(locationName: "CachePolicyConfig")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag"))
        ]

        /// The cache policy configuration.
        public let cachePolicyConfig: CachePolicyConfig?
        /// The current version of the cache policy.
        public let eTag: String?

        public init(cachePolicyConfig: CachePolicyConfig? = nil, eTag: String? = nil) {
            self.cachePolicyConfig = cachePolicyConfig
            self.eTag = eTag
        }

        private enum CodingKeys: String, CodingKey {
            case cachePolicyConfig = "CachePolicyConfig"
            case eTag = "ETag"
        }
    }

    public struct GetCachePolicyRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The unique identifier for the cache policy. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetCachePolicyResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cachePolicy"
        public static var _encoding = [
            AWSMemberEncoding(label: "cachePolicy", location: .body(locationName: "CachePolicy")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag"))
        ]

        /// The cache policy.
        public let cachePolicy: CachePolicy?
        /// The current version of the cache policy.
        public let eTag: String?

        public init(cachePolicy: CachePolicy? = nil, eTag: String? = nil) {
            self.cachePolicy = cachePolicy
            self.eTag = eTag
        }

        private enum CodingKeys: String, CodingKey {
            case cachePolicy = "CachePolicy"
            case eTag = "ETag"
        }
    }

    public struct GetCloudFrontOriginAccessIdentityConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The identity's ID.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetCloudFrontOriginAccessIdentityConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cloudFrontOriginAccessIdentityConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "cloudFrontOriginAccessIdentityConfig", location: .body(locationName: "CloudFrontOriginAccessIdentityConfig")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag"))
        ]

        /// The origin access identity's configuration information.
        public let cloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig?
        /// The current version of the configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?

        public init(cloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig? = nil, eTag: String? = nil) {
            self.cloudFrontOriginAccessIdentityConfig = cloudFrontOriginAccessIdentityConfig
            self.eTag = eTag
        }

        private enum CodingKeys: String, CodingKey {
            case cloudFrontOriginAccessIdentityConfig = "CloudFrontOriginAccessIdentityConfig"
            case eTag = "ETag"
        }
    }

    public struct GetCloudFrontOriginAccessIdentityRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The identity's ID.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetCloudFrontOriginAccessIdentityResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cloudFrontOriginAccessIdentity"
        public static var _encoding = [
            AWSMemberEncoding(label: "cloudFrontOriginAccessIdentity", location: .body(locationName: "CloudFrontOriginAccessIdentity")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag"))
        ]

        /// The origin access identity's information.
        public let cloudFrontOriginAccessIdentity: CloudFrontOriginAccessIdentity?
        /// The current version of the origin access identity's information. For example: E2QWRUHAPOMQZL.
        public let eTag: String?

        public init(cloudFrontOriginAccessIdentity: CloudFrontOriginAccessIdentity? = nil, eTag: String? = nil) {
            self.cloudFrontOriginAccessIdentity = cloudFrontOriginAccessIdentity
            self.eTag = eTag
        }

        private enum CodingKeys: String, CodingKey {
            case cloudFrontOriginAccessIdentity = "CloudFrontOriginAccessIdentity"
            case eTag = "ETag"
        }
    }

    public struct GetDistributionConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The distribution's ID. If the ID is empty, an empty distribution configuration is returned.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetDistributionConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionConfig", location: .body(locationName: "DistributionConfig")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag"))
        ]

        /// The distribution's configuration information.
        public let distributionConfig: DistributionConfig?
        /// The current version of the configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?

        public init(distributionConfig: DistributionConfig? = nil, eTag: String? = nil) {
            self.distributionConfig = distributionConfig
            self.eTag = eTag
        }

        private enum CodingKeys: String, CodingKey {
            case distributionConfig = "DistributionConfig"
            case eTag = "ETag"
        }
    }

    public struct GetDistributionRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The distribution's ID. If the ID is empty, an empty distribution configuration is returned.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetDistributionResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distribution"
        public static var _encoding = [
            AWSMemberEncoding(label: "distribution", location: .body(locationName: "Distribution")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag"))
        ]

        /// The distribution's information.
        public let distribution: Distribution?
        /// The current version of the distribution's information. For example: E2QWRUHAPOMQZL.
        public let eTag: String?

        public init(distribution: Distribution? = nil, eTag: String? = nil) {
            self.distribution = distribution
            self.eTag = eTag
        }

        private enum CodingKeys: String, CodingKey {
            case distribution = "Distribution"
            case eTag = "ETag"
        }
    }

    public struct GetFieldLevelEncryptionConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// Request the ID for the field-level encryption configuration information.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetFieldLevelEncryptionConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "fieldLevelEncryptionConfig", location: .body(locationName: "FieldLevelEncryptionConfig"))
        ]

        /// The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// Return the field-level encryption configuration information.
        public let fieldLevelEncryptionConfig: FieldLevelEncryptionConfig?

        public init(eTag: String? = nil, fieldLevelEncryptionConfig: FieldLevelEncryptionConfig? = nil) {
            self.eTag = eTag
            self.fieldLevelEncryptionConfig = fieldLevelEncryptionConfig
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case fieldLevelEncryptionConfig = "FieldLevelEncryptionConfig"
        }
    }

    public struct GetFieldLevelEncryptionProfileConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// Get the ID for the field-level encryption profile configuration information.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetFieldLevelEncryptionProfileConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionProfileConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "fieldLevelEncryptionProfileConfig", location: .body(locationName: "FieldLevelEncryptionProfileConfig"))
        ]

        /// The current version of the field-level encryption profile configuration result. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// Return the field-level encryption profile configuration information.
        public let fieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig?

        public init(eTag: String? = nil, fieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig? = nil) {
            self.eTag = eTag
            self.fieldLevelEncryptionProfileConfig = fieldLevelEncryptionProfileConfig
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case fieldLevelEncryptionProfileConfig = "FieldLevelEncryptionProfileConfig"
        }
    }

    public struct GetFieldLevelEncryptionProfileRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// Get the ID for the field-level encryption profile information.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetFieldLevelEncryptionProfileResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionProfile"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "fieldLevelEncryptionProfile", location: .body(locationName: "FieldLevelEncryptionProfile"))
        ]

        /// The current version of the field level encryption profile. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// Return the field-level encryption profile information.
        public let fieldLevelEncryptionProfile: FieldLevelEncryptionProfile?

        public init(eTag: String? = nil, fieldLevelEncryptionProfile: FieldLevelEncryptionProfile? = nil) {
            self.eTag = eTag
            self.fieldLevelEncryptionProfile = fieldLevelEncryptionProfile
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case fieldLevelEncryptionProfile = "FieldLevelEncryptionProfile"
        }
    }

    public struct GetFieldLevelEncryptionRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// Request the ID for the field-level encryption configuration information.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetFieldLevelEncryptionResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryption"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "fieldLevelEncryption", location: .body(locationName: "FieldLevelEncryption"))
        ]

        /// The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// Return the field-level encryption configuration information.
        public let fieldLevelEncryption: FieldLevelEncryption?

        public init(eTag: String? = nil, fieldLevelEncryption: FieldLevelEncryption? = nil) {
            self.eTag = eTag
            self.fieldLevelEncryption = fieldLevelEncryption
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case fieldLevelEncryption = "FieldLevelEncryption"
        }
    }

    public struct GetInvalidationRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionId", location: .uri(locationName: "DistributionId")),
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The distribution's ID.
        public let distributionId: String
        /// The identifier for the invalidation request, for example, IDFDVBD632BHDS5.
        public let id: String

        public init(distributionId: String, id: String) {
            self.distributionId = distributionId
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetInvalidationResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "invalidation"
        public static var _encoding = [
            AWSMemberEncoding(label: "invalidation", location: .body(locationName: "Invalidation"))
        ]

        /// The invalidation's information. For more information, see Invalidation Complex Type.
        public let invalidation: Invalidation?

        public init(invalidation: Invalidation? = nil) {
            self.invalidation = invalidation
        }

        private enum CodingKeys: String, CodingKey {
            case invalidation = "Invalidation"
        }
    }

    public struct GetKeyGroupConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The identifier of the key group whose configuration you are getting. To get the identifier, use ListKeyGroups.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetKeyGroupConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "keyGroupConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "keyGroupConfig", location: .body(locationName: "KeyGroupConfig"))
        ]

        /// The identifier for this version of the key group.
        public let eTag: String?
        /// The key group configuration.
        public let keyGroupConfig: KeyGroupConfig?

        public init(eTag: String? = nil, keyGroupConfig: KeyGroupConfig? = nil) {
            self.eTag = eTag
            self.keyGroupConfig = keyGroupConfig
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case keyGroupConfig = "KeyGroupConfig"
        }
    }

    public struct GetKeyGroupRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The identifier of the key group that you are getting. To get the identifier, use ListKeyGroups.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetKeyGroupResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "keyGroup"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "keyGroup", location: .body(locationName: "KeyGroup"))
        ]

        /// The identifier for this version of the key group.
        public let eTag: String?
        /// The key group.
        public let keyGroup: KeyGroup?

        public init(eTag: String? = nil, keyGroup: KeyGroup? = nil) {
            self.eTag = eTag
            self.keyGroup = keyGroup
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case keyGroup = "KeyGroup"
        }
    }

    public struct GetMonitoringSubscriptionRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionId", location: .uri(locationName: "DistributionId"))
        ]

        /// The ID of the distribution that you are getting metrics information for.
        public let distributionId: String

        public init(distributionId: String) {
            self.distributionId = distributionId
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetMonitoringSubscriptionResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "monitoringSubscription"
        public static var _encoding = [
            AWSMemberEncoding(label: "monitoringSubscription", location: .body(locationName: "MonitoringSubscription"))
        ]

        /// A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
        public let monitoringSubscription: MonitoringSubscription?

        public init(monitoringSubscription: MonitoringSubscription? = nil) {
            self.monitoringSubscription = monitoringSubscription
        }

        private enum CodingKeys: String, CodingKey {
            case monitoringSubscription = "MonitoringSubscription"
        }
    }

    public struct GetOriginRequestPolicyConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The unique identifier for the origin request policy. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetOriginRequestPolicyConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "originRequestPolicyConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "originRequestPolicyConfig", location: .body(locationName: "OriginRequestPolicyConfig"))
        ]

        /// The current version of the origin request policy.
        public let eTag: String?
        /// The origin request policy configuration.
        public let originRequestPolicyConfig: OriginRequestPolicyConfig?

        public init(eTag: String? = nil, originRequestPolicyConfig: OriginRequestPolicyConfig? = nil) {
            self.eTag = eTag
            self.originRequestPolicyConfig = originRequestPolicyConfig
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case originRequestPolicyConfig = "OriginRequestPolicyConfig"
        }
    }

    public struct GetOriginRequestPolicyRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The unique identifier for the origin request policy. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetOriginRequestPolicyResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "originRequestPolicy"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "originRequestPolicy", location: .body(locationName: "OriginRequestPolicy"))
        ]

        /// The current version of the origin request policy.
        public let eTag: String?
        /// The origin request policy.
        public let originRequestPolicy: OriginRequestPolicy?

        public init(eTag: String? = nil, originRequestPolicy: OriginRequestPolicy? = nil) {
            self.eTag = eTag
            self.originRequestPolicy = originRequestPolicy
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case originRequestPolicy = "OriginRequestPolicy"
        }
    }

    public struct GetPublicKeyConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The identifier of the public key whose configuration you are getting.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetPublicKeyConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "publicKeyConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "publicKeyConfig", location: .body(locationName: "PublicKeyConfig"))
        ]

        /// The identifier for this version of the public key configuration.
        public let eTag: String?
        /// A public key configuration.
        public let publicKeyConfig: PublicKeyConfig?

        public init(eTag: String? = nil, publicKeyConfig: PublicKeyConfig? = nil) {
            self.eTag = eTag
            self.publicKeyConfig = publicKeyConfig
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case publicKeyConfig = "PublicKeyConfig"
        }
    }

    public struct GetPublicKeyRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The identifier of the public key you are getting.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetPublicKeyResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "publicKey"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "publicKey", location: .body(locationName: "PublicKey"))
        ]

        /// The identifier for this version of the public key.
        public let eTag: String?
        /// The public key.
        public let publicKey: PublicKey?

        public init(eTag: String? = nil, publicKey: PublicKey? = nil) {
            self.eTag = eTag
            self.publicKey = publicKey
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case publicKey = "PublicKey"
        }
    }

    public struct GetRealtimeLogConfigRequest: AWSEncodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// The Amazon Resource Name (ARN) of the real-time log configuration to get.
        public let arn: String?
        /// The name of the real-time log configuration to get.
        public let name: String?

        public init(arn: String? = nil, name: String? = nil) {
            self.arn = arn
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case name = "Name"
        }
    }

    public struct GetRealtimeLogConfigResult: AWSDecodableShape {
        /// A real-time log configuration.
        public let realtimeLogConfig: RealtimeLogConfig?

        public init(realtimeLogConfig: RealtimeLogConfig? = nil) {
            self.realtimeLogConfig = realtimeLogConfig
        }

        private enum CodingKeys: String, CodingKey {
            case realtimeLogConfig = "RealtimeLogConfig"
        }
    }

    public struct GetStreamingDistributionConfigRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The streaming distribution's ID.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetStreamingDistributionConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "streamingDistributionConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "streamingDistributionConfig", location: .body(locationName: "StreamingDistributionConfig"))
        ]

        /// The current version of the configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// The streaming distribution's configuration information.
        public let streamingDistributionConfig: StreamingDistributionConfig?

        public init(eTag: String? = nil, streamingDistributionConfig: StreamingDistributionConfig? = nil) {
            self.eTag = eTag
            self.streamingDistributionConfig = streamingDistributionConfig
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case streamingDistributionConfig = "StreamingDistributionConfig"
        }
    }

    public struct GetStreamingDistributionRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id"))
        ]

        /// The streaming distribution's ID.
        public let id: String

        public init(id: String) {
            self.id = id
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetStreamingDistributionResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "streamingDistribution"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "streamingDistribution", location: .body(locationName: "StreamingDistribution"))
        ]

        /// The current version of the streaming distribution's information. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// The streaming distribution's information.
        public let streamingDistribution: StreamingDistribution?

        public init(eTag: String? = nil, streamingDistribution: StreamingDistribution? = nil) {
            self.eTag = eTag
            self.streamingDistribution = streamingDistribution
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case streamingDistribution = "StreamingDistribution"
        }
    }

    public struct Headers: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Name" }

        /// A list of HTTP header names.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The number of header names in the Items list.
        public let quantity: Int

        public init(items: [String]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct Invalidation: AWSDecodableShape {
        /// The date and time the invalidation request was first made.
        public let createTime: Date
        /// The identifier for the invalidation request. For example: IDFDVBD632BHDS5.
        public let id: String
        /// The current invalidation information for the batch request.
        public let invalidationBatch: InvalidationBatch
        /// The status of the invalidation request. When the invalidation batch is finished, the status is Completed.
        public let status: String

        public init(createTime: Date, id: String, invalidationBatch: InvalidationBatch, status: String) {
            self.createTime = createTime
            self.id = id
            self.invalidationBatch = invalidationBatch
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case createTime = "CreateTime"
            case id = "Id"
            case invalidationBatch = "InvalidationBatch"
            case status = "Status"
        }
    }

    public struct InvalidationBatch: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A value that you specify to uniquely identify an invalidation request. CloudFront uses the value to prevent you from accidentally resubmitting an identical request. Whenever you create a new invalidation request, you must specify a new value for CallerReference and change other values in the request as applicable. One way to ensure that the value of CallerReference is unique is to use a timestamp, for example, 20120301090000. If you make a second invalidation request with the same value for CallerReference, and if the rest of the request is the same, CloudFront doesn't create a new invalidation request. Instead, CloudFront returns information about the invalidation request that you previously created with the same CallerReference. If CallerReference is a value you already sent in a previous invalidation batch request but the content of any Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists error.
        public let callerReference: String
        /// A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidate in the Amazon CloudFront Developer Guide.
        public let paths: Paths

        public init(callerReference: String, paths: Paths) {
            self.callerReference = callerReference
            self.paths = paths
        }

        private enum CodingKeys: String, CodingKey {
            case callerReference = "CallerReference"
            case paths = "Paths"
        }
    }

    public struct InvalidationList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "InvalidationSummary" }

        /// A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.
        public let isTruncated: Bool
        /// A complex type that contains one InvalidationSummary element for each invalidation batch created by the current AWS account.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, InvalidationSummary>>
        public var items: [InvalidationSummary]?
        /// The value that you provided for the Marker request parameter.
        public let marker: String
        /// The value that you provided for the MaxItems request parameter.
        public let maxItems: Int
        /// If IsTruncated is true, this element is present and contains the value that you can use for the Marker request parameter to continue listing your invalidation batches where they left off.
        public let nextMarker: String?
        /// The number of invalidation batches that were created by the current AWS account.
        public let quantity: Int

        public init(isTruncated: Bool, items: [InvalidationSummary]? = nil, marker: String, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.isTruncated = isTruncated
            self.items = items
            self.marker = marker
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case isTruncated = "IsTruncated"
            case items = "Items"
            case marker = "Marker"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct InvalidationSummary: AWSDecodableShape {
        /// The time that an invalidation request was created.
        public let createTime: Date
        /// The unique ID for an invalidation request.
        public let id: String
        /// The status of an invalidation request.
        public let status: String

        public init(createTime: Date, id: String, status: String) {
            self.createTime = createTime
            self.id = id
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case createTime = "CreateTime"
            case id = "Id"
            case status = "Status"
        }
    }

    public struct KGKeyPairIds: AWSDecodableShape {
        /// The identifier of the key group that contains the public keys.
        public let keyGroupId: String?
        public let keyPairIds: KeyPairIds?

        public init(keyGroupId: String? = nil, keyPairIds: KeyPairIds? = nil) {
            self.keyGroupId = keyGroupId
            self.keyPairIds = keyPairIds
        }

        private enum CodingKeys: String, CodingKey {
            case keyGroupId = "KeyGroupId"
            case keyPairIds = "KeyPairIds"
        }
    }

    public struct KeyGroup: AWSDecodableShape {
        /// The identifier for the key group.
        public let id: String
        /// The key group configuration.
        public let keyGroupConfig: KeyGroupConfig
        /// The date and time when the key group was last modified.
        public let lastModifiedTime: Date

        public init(id: String, keyGroupConfig: KeyGroupConfig, lastModifiedTime: Date) {
            self.id = id
            self.keyGroupConfig = keyGroupConfig
            self.lastModifiedTime = lastModifiedTime
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case keyGroupConfig = "KeyGroupConfig"
            case lastModifiedTime = "LastModifiedTime"
        }
    }

    public struct KeyGroupConfig: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "PublicKey" }

        /// A comment to describe the key group.
        public let comment: String?
        /// A list of the identifiers of the public keys in the key group.
        @CustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]
        /// A name to identify the key group.
        public let name: String

        public init(comment: String? = nil, items: [String], name: String) {
            self.comment = comment
            self.items = items
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case comment = "Comment"
            case items = "Items"
            case name = "Name"
        }
    }

    public struct KeyGroupList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "KeyGroupSummary" }

        /// A list of key groups.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, KeyGroupSummary>>
        public var items: [KeyGroupSummary]?
        /// The maximum number of key groups requested.
        public let maxItems: Int
        /// If there are more items in the list than are in this response, this element is present. It contains the value that you should use in the Marker field of a subsequent request to continue listing key groups.
        public let nextMarker: String?
        /// The number of key groups returned in the response.
        public let quantity: Int

        public init(items: [KeyGroupSummary]? = nil, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.items = items
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct KeyGroupSummary: AWSDecodableShape {
        /// A key group.
        public let keyGroup: KeyGroup

        public init(keyGroup: KeyGroup) {
            self.keyGroup = keyGroup
        }

        private enum CodingKeys: String, CodingKey {
            case keyGroup = "KeyGroup"
        }
    }

    public struct KeyPairIds: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "KeyPairId" }

        /// A list of CloudFront key pair identifiers.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The number of key pair identifiers in the list.
        public let quantity: Int

        public init(items: [String]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct KinesisStreamConfig: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that CloudFront can use to send real-time log data to your Kinesis data stream. For more information the IAM role, see Real-time log configuration IAM role in the Amazon CloudFront Developer Guide.
        public let roleARN: String
        /// The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data.
        public let streamARN: String

        public init(roleARN: String, streamARN: String) {
            self.roleARN = roleARN
            self.streamARN = streamARN
        }

        private enum CodingKeys: String, CodingKey {
            case roleARN = "RoleARN"
            case streamARN = "StreamARN"
        }
    }

    public struct LambdaFunctionAssociation: AWSEncodableShape & AWSDecodableShape {
        /// Specifies the event type that triggers a Lambda function invocation. You can specify the following values:    viewer-request: The function executes when CloudFront receives a request from a viewer and before it checks to see whether the requested object is in the edge cache.     origin-request: The function executes only when CloudFront sends a request to your origin. When the requested object is in the edge cache, the function doesn't execute.    origin-response: The function executes after CloudFront receives a response from the origin and before it caches the object in the response. When the requested object is in the edge cache, the function doesn't execute.    viewer-response: The function executes before CloudFront returns the requested object to the viewer. The function executes regardless of whether the object was already in the edge cache. If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.
        public let eventType: EventType
        /// A flag that allows a Lambda function to have read access to the body content. For more information, see Accessing the Request Body by Choosing the Include Body Option in the Amazon CloudFront Developer Guide.
        public let includeBody: Bool?
        /// The ARN of the Lambda function. You must specify the ARN of a function version; you can't specify a Lambda alias or $LATEST.
        public let lambdaFunctionARN: String

        public init(eventType: EventType, includeBody: Bool? = nil, lambdaFunctionARN: String) {
            self.eventType = eventType
            self.includeBody = includeBody
            self.lambdaFunctionARN = lambdaFunctionARN
        }

        private enum CodingKeys: String, CodingKey {
            case eventType = "EventType"
            case includeBody = "IncludeBody"
            case lambdaFunctionARN = "LambdaFunctionARN"
        }
    }

    public struct LambdaFunctionAssociations: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "LambdaFunctionAssociation" }

        ///  Optional: A complex type that contains LambdaFunctionAssociation items for this cache behavior. If Quantity is 0, you can omit Items.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, LambdaFunctionAssociation>>
        public var items: [LambdaFunctionAssociation]?
        /// The number of Lambda function associations for this cache behavior.
        public let quantity: Int

        public init(items: [LambdaFunctionAssociation]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct ListCachePoliciesRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems")),
            AWSMemberEncoding(label: "type", location: .querystring(locationName: "Type"))
        ]

        /// Use this field when paginating results to indicate where to begin in your list of cache policies. The response includes cache policies in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.
        public let marker: String?
        /// The maximum number of cache policies that you want in the response.
        public let maxItems: String?
        /// A filter to return only the specified kinds of cache policies. Valid values are:    managed – Returns only the managed policies created by AWS.    custom – Returns only the custom policies created in your AWS account.
        public let type: CachePolicyType?

        public init(marker: String? = nil, maxItems: String? = nil, type: CachePolicyType? = nil) {
            self.marker = marker
            self.maxItems = maxItems
            self.type = type
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListCachePoliciesResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cachePolicyList"
        public static var _encoding = [
            AWSMemberEncoding(label: "cachePolicyList", location: .body(locationName: "CachePolicyList"))
        ]

        /// A list of cache policies.
        public let cachePolicyList: CachePolicyList?

        public init(cachePolicyList: CachePolicyList? = nil) {
            self.cachePolicyList = cachePolicyList
        }

        private enum CodingKeys: String, CodingKey {
            case cachePolicyList = "CachePolicyList"
        }
    }

    public struct ListCloudFrontOriginAccessIdentitiesRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).
        public let marker: String?
        /// The maximum number of origin access identities you want in the response body.
        public let maxItems: String?

        public init(marker: String? = nil, maxItems: String? = nil) {
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListCloudFrontOriginAccessIdentitiesResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cloudFrontOriginAccessIdentityList"
        public static var _encoding = [
            AWSMemberEncoding(label: "cloudFrontOriginAccessIdentityList", location: .body(locationName: "CloudFrontOriginAccessIdentityList"))
        ]

        /// The CloudFrontOriginAccessIdentityList type.
        public let cloudFrontOriginAccessIdentityList: CloudFrontOriginAccessIdentityList?

        public init(cloudFrontOriginAccessIdentityList: CloudFrontOriginAccessIdentityList? = nil) {
            self.cloudFrontOriginAccessIdentityList = cloudFrontOriginAccessIdentityList
        }

        private enum CodingKeys: String, CodingKey {
            case cloudFrontOriginAccessIdentityList = "CloudFrontOriginAccessIdentityList"
        }
    }

    public struct ListDistributionsByCachePolicyIdRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "cachePolicyId", location: .uri(locationName: "CachePolicyId")),
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// The ID of the cache policy whose associated distribution IDs you want to list.
        public let cachePolicyId: String
        /// Use this field when paginating results to indicate where to begin in your list of distribution IDs. The response includes distribution IDs in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.
        public let marker: String?
        /// The maximum number of distribution IDs that you want in the response.
        public let maxItems: String?

        public init(cachePolicyId: String, marker: String? = nil, maxItems: String? = nil) {
            self.cachePolicyId = cachePolicyId
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListDistributionsByCachePolicyIdResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionIdList"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionIdList", location: .body(locationName: "DistributionIdList"))
        ]

        /// A list of distribution IDs.
        public let distributionIdList: DistributionIdList?

        public init(distributionIdList: DistributionIdList? = nil) {
            self.distributionIdList = distributionIdList
        }

        private enum CodingKeys: String, CodingKey {
            case distributionIdList = "DistributionIdList"
        }
    }

    public struct ListDistributionsByKeyGroupRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "keyGroupId", location: .uri(locationName: "KeyGroupId")),
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// The ID of the key group whose associated distribution IDs you are listing.
        public let keyGroupId: String
        /// Use this field when paginating results to indicate where to begin in your list of distribution IDs. The response includes distribution IDs in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.
        public let marker: String?
        /// The maximum number of distribution IDs that you want in the response.
        public let maxItems: String?

        public init(keyGroupId: String, marker: String? = nil, maxItems: String? = nil) {
            self.keyGroupId = keyGroupId
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListDistributionsByKeyGroupResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionIdList"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionIdList", location: .body(locationName: "DistributionIdList"))
        ]

        public let distributionIdList: DistributionIdList?

        public init(distributionIdList: DistributionIdList? = nil) {
            self.distributionIdList = distributionIdList
        }

        private enum CodingKeys: String, CodingKey {
            case distributionIdList = "DistributionIdList"
        }
    }

    public struct ListDistributionsByOriginRequestPolicyIdRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems")),
            AWSMemberEncoding(label: "originRequestPolicyId", location: .uri(locationName: "OriginRequestPolicyId"))
        ]

        /// Use this field when paginating results to indicate where to begin in your list of distribution IDs. The response includes distribution IDs in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.
        public let marker: String?
        /// The maximum number of distribution IDs that you want in the response.
        public let maxItems: String?
        /// The ID of the origin request policy whose associated distribution IDs you want to list.
        public let originRequestPolicyId: String

        public init(marker: String? = nil, maxItems: String? = nil, originRequestPolicyId: String) {
            self.marker = marker
            self.maxItems = maxItems
            self.originRequestPolicyId = originRequestPolicyId
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListDistributionsByOriginRequestPolicyIdResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionIdList"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionIdList", location: .body(locationName: "DistributionIdList"))
        ]

        /// A list of distribution IDs.
        public let distributionIdList: DistributionIdList?

        public init(distributionIdList: DistributionIdList? = nil) {
            self.distributionIdList = distributionIdList
        }

        private enum CodingKeys: String, CodingKey {
            case distributionIdList = "DistributionIdList"
        }
    }

    public struct ListDistributionsByRealtimeLogConfigRequest: AWSEncodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// Use this field when paginating results to indicate where to begin in your list of distributions. The response includes distributions in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.
        public let marker: String?
        /// The maximum number of distributions that you want in the response.
        public let maxItems: String?
        /// The Amazon Resource Name (ARN) of the real-time log configuration whose associated distributions you want to list.
        public let realtimeLogConfigArn: String?
        /// The name of the real-time log configuration whose associated distributions you want to list.
        public let realtimeLogConfigName: String?

        public init(marker: String? = nil, maxItems: String? = nil, realtimeLogConfigArn: String? = nil, realtimeLogConfigName: String? = nil) {
            self.marker = marker
            self.maxItems = maxItems
            self.realtimeLogConfigArn = realtimeLogConfigArn
            self.realtimeLogConfigName = realtimeLogConfigName
        }

        private enum CodingKeys: String, CodingKey {
            case marker = "Marker"
            case maxItems = "MaxItems"
            case realtimeLogConfigArn = "RealtimeLogConfigArn"
            case realtimeLogConfigName = "RealtimeLogConfigName"
        }
    }

    public struct ListDistributionsByRealtimeLogConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionList"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionList", location: .body(locationName: "DistributionList"))
        ]

        public let distributionList: DistributionList?

        public init(distributionList: DistributionList? = nil) {
            self.distributionList = distributionList
        }

        private enum CodingKeys: String, CodingKey {
            case distributionList = "DistributionList"
        }
    }

    public struct ListDistributionsByWebACLIdRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems")),
            AWSMemberEncoding(label: "webACLId", location: .uri(locationName: "WebACLId"))
        ]

        /// Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)
        public let marker: String?
        /// The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.
        public let maxItems: String?
        /// The ID of the AWS WAF web ACL that you want to list the associated distributions. If you specify "null" for the ID, the request returns a list of the distributions that aren't associated with a web ACL.
        public let webACLId: String

        public init(marker: String? = nil, maxItems: String? = nil, webACLId: String) {
            self.marker = marker
            self.maxItems = maxItems
            self.webACLId = webACLId
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListDistributionsByWebACLIdResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionList"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionList", location: .body(locationName: "DistributionList"))
        ]

        /// The DistributionList type.
        public let distributionList: DistributionList?

        public init(distributionList: DistributionList? = nil) {
            self.distributionList = distributionList
        }

        private enum CodingKeys: String, CodingKey {
            case distributionList = "DistributionList"
        }
    }

    public struct ListDistributionsRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// Use this when paginating results to indicate where to begin in your list of distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).
        public let marker: String?
        /// The maximum number of distributions you want in the response body.
        public let maxItems: String?

        public init(marker: String? = nil, maxItems: String? = nil) {
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListDistributionsResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionList"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionList", location: .body(locationName: "DistributionList"))
        ]

        /// The DistributionList type.
        public let distributionList: DistributionList?

        public init(distributionList: DistributionList? = nil) {
            self.distributionList = distributionList
        }

        private enum CodingKeys: String, CodingKey {
            case distributionList = "DistributionList"
        }
    }

    public struct ListFieldLevelEncryptionConfigsRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// Use this when paginating results to indicate where to begin in your list of configurations. The results include configurations in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last configuration on that page).
        public let marker: String?
        /// The maximum number of field-level encryption configurations you want in the response body.
        public let maxItems: String?

        public init(marker: String? = nil, maxItems: String? = nil) {
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListFieldLevelEncryptionConfigsResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionList"
        public static var _encoding = [
            AWSMemberEncoding(label: "fieldLevelEncryptionList", location: .body(locationName: "FieldLevelEncryptionList"))
        ]

        /// Returns a list of all field-level encryption configurations that have been created in CloudFront for this account.
        public let fieldLevelEncryptionList: FieldLevelEncryptionList?

        public init(fieldLevelEncryptionList: FieldLevelEncryptionList? = nil) {
            self.fieldLevelEncryptionList = fieldLevelEncryptionList
        }

        private enum CodingKeys: String, CodingKey {
            case fieldLevelEncryptionList = "FieldLevelEncryptionList"
        }
    }

    public struct ListFieldLevelEncryptionProfilesRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// Use this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last profile on that page).
        public let marker: String?
        /// The maximum number of field-level encryption profiles you want in the response body.
        public let maxItems: String?

        public init(marker: String? = nil, maxItems: String? = nil) {
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListFieldLevelEncryptionProfilesResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionProfileList"
        public static var _encoding = [
            AWSMemberEncoding(label: "fieldLevelEncryptionProfileList", location: .body(locationName: "FieldLevelEncryptionProfileList"))
        ]

        /// Returns a list of the field-level encryption profiles that have been created in CloudFront for this account.
        public let fieldLevelEncryptionProfileList: FieldLevelEncryptionProfileList?

        public init(fieldLevelEncryptionProfileList: FieldLevelEncryptionProfileList? = nil) {
            self.fieldLevelEncryptionProfileList = fieldLevelEncryptionProfileList
        }

        private enum CodingKeys: String, CodingKey {
            case fieldLevelEncryptionProfileList = "FieldLevelEncryptionProfileList"
        }
    }

    public struct ListInvalidationsRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionId", location: .uri(locationName: "DistributionId")),
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// The distribution's ID.
        public let distributionId: String
        /// Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.
        public let marker: String?
        /// The maximum number of invalidation batches that you want in the response body.
        public let maxItems: String?

        public init(distributionId: String, marker: String? = nil, maxItems: String? = nil) {
            self.distributionId = distributionId
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListInvalidationsResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "invalidationList"
        public static var _encoding = [
            AWSMemberEncoding(label: "invalidationList", location: .body(locationName: "InvalidationList"))
        ]

        /// Information about invalidation batches.
        public let invalidationList: InvalidationList?

        public init(invalidationList: InvalidationList? = nil) {
            self.invalidationList = invalidationList
        }

        private enum CodingKeys: String, CodingKey {
            case invalidationList = "InvalidationList"
        }
    }

    public struct ListKeyGroupsRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// Use this field when paginating results to indicate where to begin in your list of key groups. The response includes key groups in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.
        public let marker: String?
        /// The maximum number of key groups that you want in the response.
        public let maxItems: String?

        public init(marker: String? = nil, maxItems: String? = nil) {
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListKeyGroupsResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "keyGroupList"
        public static var _encoding = [
            AWSMemberEncoding(label: "keyGroupList", location: .body(locationName: "KeyGroupList"))
        ]

        /// A list of key groups.
        public let keyGroupList: KeyGroupList?

        public init(keyGroupList: KeyGroupList? = nil) {
            self.keyGroupList = keyGroupList
        }

        private enum CodingKeys: String, CodingKey {
            case keyGroupList = "KeyGroupList"
        }
    }

    public struct ListOriginRequestPoliciesRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems")),
            AWSMemberEncoding(label: "type", location: .querystring(locationName: "Type"))
        ]

        /// Use this field when paginating results to indicate where to begin in your list of origin request policies. The response includes origin request policies in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.
        public let marker: String?
        /// The maximum number of origin request policies that you want in the response.
        public let maxItems: String?
        /// A filter to return only the specified kinds of origin request policies. Valid values are:    managed – Returns only the managed policies created by AWS.    custom – Returns only the custom policies created in your AWS account.
        public let type: OriginRequestPolicyType?

        public init(marker: String? = nil, maxItems: String? = nil, type: OriginRequestPolicyType? = nil) {
            self.marker = marker
            self.maxItems = maxItems
            self.type = type
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListOriginRequestPoliciesResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "originRequestPolicyList"
        public static var _encoding = [
            AWSMemberEncoding(label: "originRequestPolicyList", location: .body(locationName: "OriginRequestPolicyList"))
        ]

        /// A list of origin request policies.
        public let originRequestPolicyList: OriginRequestPolicyList?

        public init(originRequestPolicyList: OriginRequestPolicyList? = nil) {
            self.originRequestPolicyList = originRequestPolicyList
        }

        private enum CodingKeys: String, CodingKey {
            case originRequestPolicyList = "OriginRequestPolicyList"
        }
    }

    public struct ListPublicKeysRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// Use this when paginating results to indicate where to begin in your list of public keys. The results include public keys in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last public key on that page).
        public let marker: String?
        /// The maximum number of public keys you want in the response body.
        public let maxItems: String?

        public init(marker: String? = nil, maxItems: String? = nil) {
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListPublicKeysResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "publicKeyList"
        public static var _encoding = [
            AWSMemberEncoding(label: "publicKeyList", location: .body(locationName: "PublicKeyList"))
        ]

        /// Returns a list of all public keys that have been added to CloudFront for this account.
        public let publicKeyList: PublicKeyList?

        public init(publicKeyList: PublicKeyList? = nil) {
            self.publicKeyList = publicKeyList
        }

        private enum CodingKeys: String, CodingKey {
            case publicKeyList = "PublicKeyList"
        }
    }

    public struct ListRealtimeLogConfigsRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// Use this field when paginating results to indicate where to begin in your list of real-time log configurations. The response includes real-time log configurations in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.
        public let marker: String?
        /// The maximum number of real-time log configurations that you want in the response.
        public let maxItems: String?

        public init(marker: String? = nil, maxItems: String? = nil) {
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListRealtimeLogConfigsResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "realtimeLogConfigs"
        public static var _encoding = [
            AWSMemberEncoding(label: "realtimeLogConfigs", location: .body(locationName: "RealtimeLogConfigs"))
        ]

        /// A list of real-time log configurations.
        public let realtimeLogConfigs: RealtimeLogConfigs?

        public init(realtimeLogConfigs: RealtimeLogConfigs? = nil) {
            self.realtimeLogConfigs = realtimeLogConfigs
        }

        private enum CodingKeys: String, CodingKey {
            case realtimeLogConfigs = "RealtimeLogConfigs"
        }
    }

    public struct ListStreamingDistributionsRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "marker", location: .querystring(locationName: "Marker")),
            AWSMemberEncoding(label: "maxItems", location: .querystring(locationName: "MaxItems"))
        ]

        /// The value that you provided for the Marker request parameter.
        public let marker: String?
        /// The value that you provided for the MaxItems request parameter.
        public let maxItems: String?

        public init(marker: String? = nil, maxItems: String? = nil) {
            self.marker = marker
            self.maxItems = maxItems
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListStreamingDistributionsResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "streamingDistributionList"
        public static var _encoding = [
            AWSMemberEncoding(label: "streamingDistributionList", location: .body(locationName: "StreamingDistributionList"))
        ]

        /// The StreamingDistributionList type.
        public let streamingDistributionList: StreamingDistributionList?

        public init(streamingDistributionList: StreamingDistributionList? = nil) {
            self.streamingDistributionList = streamingDistributionList
        }

        private enum CodingKeys: String, CodingKey {
            case streamingDistributionList = "StreamingDistributionList"
        }
    }

    public struct ListTagsForResourceRequest: AWSEncodableShape {
        public static var _encoding = [
            AWSMemberEncoding(label: "resource", location: .querystring(locationName: "Resource"))
        ]

        ///  An ARN of a CloudFront resource.
        public let resource: String

        public init(resource: String) {
            self.resource = resource
        }

        public func validate(name: String) throws {
            try self.validate(self.resource, name: "resource", parent: name, pattern: "arn:aws(-cn)?:cloudfront::[0-9]+:.*")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListTagsForResourceResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "tags"
        public static var _encoding = [
            AWSMemberEncoding(label: "tags", location: .body(locationName: "Tags"))
        ]

        ///  A complex type that contains zero or more Tag elements.
        public let tags: Tags

        public init(tags: Tags) {
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case tags = "Tags"
        }
    }

    public struct LoggingConfig: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
        public let bucket: String
        /// Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix, and IncludeCookies, the values are automatically deleted.
        public let enabled: Bool
        /// Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.
        public let includeCookies: Bool
        /// An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix element in the Logging element.
        public let prefix: String

        public init(bucket: String, enabled: Bool, includeCookies: Bool, prefix: String) {
            self.bucket = bucket
            self.enabled = enabled
            self.includeCookies = includeCookies
            self.prefix = prefix
        }

        private enum CodingKeys: String, CodingKey {
            case bucket = "Bucket"
            case enabled = "Enabled"
            case includeCookies = "IncludeCookies"
            case prefix = "Prefix"
        }
    }

    public struct MonitoringSubscription: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A subscription configuration for additional CloudWatch metrics.
        public let realtimeMetricsSubscriptionConfig: RealtimeMetricsSubscriptionConfig?

        public init(realtimeMetricsSubscriptionConfig: RealtimeMetricsSubscriptionConfig? = nil) {
            self.realtimeMetricsSubscriptionConfig = realtimeMetricsSubscriptionConfig
        }

        private enum CodingKeys: String, CodingKey {
            case realtimeMetricsSubscriptionConfig = "RealtimeMetricsSubscriptionConfig"
        }
    }

    public struct Origin: AWSEncodableShape & AWSDecodableShape {
        /// The number of times that CloudFront attempts to connect to the origin. The minimum number is 1, the maximum is 3, and the default (if you don’t specify otherwise) is 3. For a custom origin (including an Amazon S3 bucket that’s configured with static website hosting), this value also specifies the number of times that CloudFront attempts to get a response from the origin, in the case of an Origin Response Timeout. For more information, see Origin Connection Attempts in the Amazon CloudFront Developer Guide.
        public let connectionAttempts: Int?
        /// The number of seconds that CloudFront waits when trying to establish a connection to the origin. The minimum timeout is 1 second, the maximum is 10 seconds, and the default (if you don’t specify otherwise) is 10 seconds. For more information, see Origin Connection Timeout in the Amazon CloudFront Developer Guide.
        public let connectionTimeout: Int?
        /// A list of HTTP header names and values that CloudFront adds to the requests that it sends to the origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
        public let customHeaders: CustomHeaders?
        /// Use this type to specify an origin that is not an Amazon S3 bucket, with one exception. If the Amazon S3 bucket is configured with static website hosting, use this type. If the Amazon S3 bucket is not configured with static website hosting, use the S3OriginConfig type instead.
        public let customOriginConfig: CustomOriginConfig?
        /// The domain name for the origin. For more information, see Origin Domain Name in the Amazon CloudFront Developer Guide.
        public let domainName: String
        /// A unique identifier for the origin. This value must be unique within the distribution. Use this value to specify the TargetOriginId in a CacheBehavior or DefaultCacheBehavior.
        public let id: String
        /// An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. For more information, see Origin Path in the Amazon CloudFront Developer Guide.
        public let originPath: String?
        /// CloudFront Origin Shield. Using Origin Shield can help reduce the load on your origin. For more information, see Using Origin Shield in the Amazon CloudFront Developer Guide.
        public let originShield: OriginShield?
        /// Use this type to specify an origin that is an Amazon S3 bucket that is not configured with static website hosting. To specify any other type of origin, including an Amazon S3 bucket that is configured with static website hosting, use the CustomOriginConfig type instead.
        public let s3OriginConfig: S3OriginConfig?

        public init(connectionAttempts: Int? = nil, connectionTimeout: Int? = nil, customHeaders: CustomHeaders? = nil, customOriginConfig: CustomOriginConfig? = nil, domainName: String, id: String, originPath: String? = nil, originShield: OriginShield? = nil, s3OriginConfig: S3OriginConfig? = nil) {
            self.connectionAttempts = connectionAttempts
            self.connectionTimeout = connectionTimeout
            self.customHeaders = customHeaders
            self.customOriginConfig = customOriginConfig
            self.domainName = domainName
            self.id = id
            self.originPath = originPath
            self.originShield = originShield
            self.s3OriginConfig = s3OriginConfig
        }

        public func validate(name: String) throws {
            try self.originShield?.validate(name: "\(name).originShield")
        }

        private enum CodingKeys: String, CodingKey {
            case connectionAttempts = "ConnectionAttempts"
            case connectionTimeout = "ConnectionTimeout"
            case customHeaders = "CustomHeaders"
            case customOriginConfig = "CustomOriginConfig"
            case domainName = "DomainName"
            case id = "Id"
            case originPath = "OriginPath"
            case originShield = "OriginShield"
            case s3OriginConfig = "S3OriginConfig"
        }
    }

    public struct OriginCustomHeader: AWSEncodableShape & AWSDecodableShape {
        /// The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the  Amazon CloudFront Developer Guide.
        public let headerName: String
        /// The value for the header that you specified in the HeaderName field.
        public let headerValue: String

        public init(headerName: String, headerValue: String) {
            self.headerName = headerName
            self.headerValue = headerValue
        }

        private enum CodingKeys: String, CodingKey {
            case headerName = "HeaderName"
            case headerValue = "HeaderValue"
        }
    }

    public struct OriginGroup: AWSEncodableShape & AWSDecodableShape {
        /// A complex type that contains information about the failover criteria for an origin group.
        public let failoverCriteria: OriginGroupFailoverCriteria
        /// The origin group's ID.
        public let id: String
        /// A complex type that contains information about the origins in an origin group.
        public let members: OriginGroupMembers

        public init(failoverCriteria: OriginGroupFailoverCriteria, id: String, members: OriginGroupMembers) {
            self.failoverCriteria = failoverCriteria
            self.id = id
            self.members = members
        }

        public func validate(name: String) throws {
            try self.failoverCriteria.validate(name: "\(name).failoverCriteria")
            try self.members.validate(name: "\(name).members")
        }

        private enum CodingKeys: String, CodingKey {
            case failoverCriteria = "FailoverCriteria"
            case id = "Id"
            case members = "Members"
        }
    }

    public struct OriginGroupFailoverCriteria: AWSEncodableShape & AWSDecodableShape {
        /// The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.
        public let statusCodes: StatusCodes

        public init(statusCodes: StatusCodes) {
            self.statusCodes = statusCodes
        }

        public func validate(name: String) throws {
            try self.statusCodes.validate(name: "\(name).statusCodes")
        }

        private enum CodingKeys: String, CodingKey {
            case statusCodes = "StatusCodes"
        }
    }

    public struct OriginGroupMember: AWSEncodableShape & AWSDecodableShape {
        /// The ID for an origin in an origin group.
        public let originId: String

        public init(originId: String) {
            self.originId = originId
        }

        private enum CodingKeys: String, CodingKey {
            case originId = "OriginId"
        }
    }

    public struct OriginGroupMembers: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "OriginGroupMember" }

        /// Items (origins) in an origin group.
        @CustomCoding<ArrayCoder<_ItemsEncoding, OriginGroupMember>>
        public var items: [OriginGroupMember]
        /// The number of origins in an origin group.
        public let quantity: Int

        public init(items: [OriginGroupMember], quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        public func validate(name: String) throws {
            try self.validate(self.items, name: "items", parent: name, max: 2)
            try self.validate(self.items, name: "items", parent: name, min: 2)
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct OriginGroups: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "OriginGroup" }

        /// The items (origin groups) in a distribution.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, OriginGroup>>
        public var items: [OriginGroup]?
        /// The number of origin groups.
        public let quantity: Int

        public init(items: [OriginGroup]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        public func validate(name: String) throws {
            try self.items?.forEach {
                try $0.validate(name: "\(name).items[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct OriginRequestPolicy: AWSDecodableShape {
        /// The unique identifier for the origin request policy.
        public let id: String
        /// The date and time when the origin request policy was last modified.
        public let lastModifiedTime: Date
        /// The origin request policy configuration.
        public let originRequestPolicyConfig: OriginRequestPolicyConfig

        public init(id: String, lastModifiedTime: Date, originRequestPolicyConfig: OriginRequestPolicyConfig) {
            self.id = id
            self.lastModifiedTime = lastModifiedTime
            self.originRequestPolicyConfig = originRequestPolicyConfig
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case lastModifiedTime = "LastModifiedTime"
            case originRequestPolicyConfig = "OriginRequestPolicyConfig"
        }
    }

    public struct OriginRequestPolicyConfig: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A comment to describe the origin request policy.
        public let comment: String?
        /// The cookies from viewer requests to include in origin requests.
        public let cookiesConfig: OriginRequestPolicyCookiesConfig
        /// The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
        public let headersConfig: OriginRequestPolicyHeadersConfig
        /// A unique name to identify the origin request policy.
        public let name: String
        /// The URL query strings from viewer requests to include in origin requests.
        public let queryStringsConfig: OriginRequestPolicyQueryStringsConfig

        public init(comment: String? = nil, cookiesConfig: OriginRequestPolicyCookiesConfig, headersConfig: OriginRequestPolicyHeadersConfig, name: String, queryStringsConfig: OriginRequestPolicyQueryStringsConfig) {
            self.comment = comment
            self.cookiesConfig = cookiesConfig
            self.headersConfig = headersConfig
            self.name = name
            self.queryStringsConfig = queryStringsConfig
        }

        private enum CodingKeys: String, CodingKey {
            case comment = "Comment"
            case cookiesConfig = "CookiesConfig"
            case headersConfig = "HeadersConfig"
            case name = "Name"
            case queryStringsConfig = "QueryStringsConfig"
        }
    }

    public struct OriginRequestPolicyCookiesConfig: AWSEncodableShape & AWSDecodableShape {
        /// Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:    none – Cookies in viewer requests are not included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in a CachePolicy are included in origin requests.    whitelist – The cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.    all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.
        public let cookieBehavior: OriginRequestPolicyCookieBehavior
        public let cookies: CookieNames?

        public init(cookieBehavior: OriginRequestPolicyCookieBehavior, cookies: CookieNames? = nil) {
            self.cookieBehavior = cookieBehavior
            self.cookies = cookies
        }

        private enum CodingKeys: String, CodingKey {
            case cookieBehavior = "CookieBehavior"
            case cookies = "Cookies"
        }
    }

    public struct OriginRequestPolicyHeadersConfig: AWSEncodableShape & AWSDecodableShape {
        /// Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:    none – HTTP headers are not included in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in a CachePolicy are included in origin requests.    whitelist – The HTTP headers that are listed in the Headers type are included in requests that CloudFront sends to the origin.    allViewer – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.    allViewerAndWhitelistCloudFront – All HTTP headers in viewer requests and the additional CloudFront headers that are listed in the Headers type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.
        public let headerBehavior: OriginRequestPolicyHeaderBehavior
        public let headers: Headers?

        public init(headerBehavior: OriginRequestPolicyHeaderBehavior, headers: Headers? = nil) {
            self.headerBehavior = headerBehavior
            self.headers = headers
        }

        private enum CodingKeys: String, CodingKey {
            case headerBehavior = "HeaderBehavior"
            case headers = "Headers"
        }
    }

    public struct OriginRequestPolicyList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "OriginRequestPolicySummary" }

        /// Contains the origin request policies in the list.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, OriginRequestPolicySummary>>
        public var items: [OriginRequestPolicySummary]?
        /// The maximum number of origin request policies requested.
        public let maxItems: Int
        /// If there are more items in the list than are in this response, this element is present. It contains the value that you should use in the Marker field of a subsequent request to continue listing origin request policies where you left off.
        public let nextMarker: String?
        /// The total number of origin request policies returned in the response.
        public let quantity: Int

        public init(items: [OriginRequestPolicySummary]? = nil, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.items = items
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct OriginRequestPolicyQueryStringsConfig: AWSEncodableShape & AWSDecodableShape {
        /// Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:    none – Query strings in viewer requests are not included in requests that CloudFront sends to the origin. Even when this field is set to none, any query strings that are listed in a CachePolicy are included in origin requests.    whitelist – The query strings in viewer requests that are listed in the QueryStringNames type are included in requests that CloudFront sends to the origin.    all – All query strings in viewer requests are included in requests that CloudFront sends to the origin.
        public let queryStringBehavior: OriginRequestPolicyQueryStringBehavior
        /// Contains a list of the query strings in viewer requests that are included in requests that CloudFront sends to the origin.
        public let queryStrings: QueryStringNames?

        public init(queryStringBehavior: OriginRequestPolicyQueryStringBehavior, queryStrings: QueryStringNames? = nil) {
            self.queryStringBehavior = queryStringBehavior
            self.queryStrings = queryStrings
        }

        private enum CodingKeys: String, CodingKey {
            case queryStringBehavior = "QueryStringBehavior"
            case queryStrings = "QueryStrings"
        }
    }

    public struct OriginRequestPolicySummary: AWSDecodableShape {
        /// The origin request policy.
        public let originRequestPolicy: OriginRequestPolicy
        /// The type of origin request policy, either managed (created by AWS) or custom (created in this AWS account).
        public let type: OriginRequestPolicyType

        public init(originRequestPolicy: OriginRequestPolicy, type: OriginRequestPolicyType) {
            self.originRequestPolicy = originRequestPolicy
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case originRequestPolicy = "OriginRequestPolicy"
            case type = "Type"
        }
    }

    public struct OriginShield: AWSEncodableShape & AWSDecodableShape {
        /// A flag that specifies whether Origin Shield is enabled. When it’s enabled, CloudFront routes all requests through Origin Shield, which can help protect your origin. When it’s disabled, CloudFront might send requests directly to your origin from multiple edge locations or regional edge caches.
        public let enabled: Bool
        /// The AWS Region for Origin Shield. Specify the AWS Region that has the lowest latency to your origin. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. When you enable CloudFront Origin Shield, you must specify the AWS Region for Origin Shield. For the list of AWS Regions that you can specify, and for help choosing the best Region for your origin, see Choosing the AWS Region for Origin Shield in the Amazon CloudFront Developer Guide.
        public let originShieldRegion: String?

        public init(enabled: Bool, originShieldRegion: String? = nil) {
            self.enabled = enabled
            self.originShieldRegion = originShieldRegion
        }

        public func validate(name: String) throws {
            try self.validate(self.originShieldRegion, name: "originShieldRegion", parent: name, max: 32)
            try self.validate(self.originShieldRegion, name: "originShieldRegion", parent: name, min: 1)
            try self.validate(self.originShieldRegion, name: "originShieldRegion", parent: name, pattern: "[a-z]{2}-[a-z]+-\\d")
        }

        private enum CodingKeys: String, CodingKey {
            case enabled = "Enabled"
            case originShieldRegion = "OriginShieldRegion"
        }
    }

    public struct OriginSslProtocols: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "SslProtocol" }

        /// A list that contains allowed SSL/TLS protocols for this distribution.
        @CustomCoding<ArrayCoder<_ItemsEncoding, SslProtocol>>
        public var items: [SslProtocol]
        /// The number of SSL/TLS protocols that you want to allow CloudFront to use when establishing an HTTPS connection with this origin.
        public let quantity: Int

        public init(items: [SslProtocol], quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct Origins: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Origin" }

        /// A list of origins.
        @CustomCoding<ArrayCoder<_ItemsEncoding, Origin>>
        public var items: [Origin]
        /// The number of origins for this distribution.
        public let quantity: Int

        public init(items: [Origin], quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        public func validate(name: String) throws {
            try self.items.forEach {
                try $0.validate(name: "\(name).items[]")
            }
            try self.validate(self.items, name: "items", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct ParametersInCacheKeyAndForwardedToOrigin: AWSEncodableShape & AWSDecodableShape {
        /// An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
        public let cookiesConfig: CachePolicyCookiesConfig
        /// A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. This field is related to the EnableAcceptEncodingGzip field. If one or both of these fields is true and the viewer request includes the Accept-Encoding header, then CloudFront does the following:   Normalizes the value of the viewer’s Accept-Encoding header   Includes the normalized header in the cache key   Includes the normalized header in the request to the origin, if a request is necessary   For more information, see Compression support in the Amazon CloudFront Developer Guide. If you set this value to true, and this cache behavior also has an origin request policy attached, do not include the Accept-Encoding header in the origin request policy. CloudFront always includes the Accept-Encoding header in origin requests when the value of this field is true, so including this header in an origin request policy has no effect. If both of these fields are false, then CloudFront treats the Accept-Encoding header the same as any other HTTP header in the viewer request. By default, it’s not included in the cache key and it’s not included in origin requests. In this case, you can manually add Accept-Encoding to the headers whitelist like any other HTTP header.
        public let enableAcceptEncodingBrotli: Bool?
        /// A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. This field is related to the EnableAcceptEncodingBrotli field. If one or both of these fields is true and the viewer request includes the Accept-Encoding header, then CloudFront does the following:   Normalizes the value of the viewer’s Accept-Encoding header   Includes the normalized header in the cache key   Includes the normalized header in the request to the origin, if a request is necessary   For more information, see Compression support in the Amazon CloudFront Developer Guide. If you set this value to true, and this cache behavior also has an origin request policy attached, do not include the Accept-Encoding header in the origin request policy. CloudFront always includes the Accept-Encoding header in origin requests when the value of this field is true, so including this header in an origin request policy has no effect. If both of these fields are false, then CloudFront treats the Accept-Encoding header the same as any other HTTP header in the viewer request. By default, it’s not included in the cache key and it’s not included in origin requests. In this case, you can manually add Accept-Encoding to the headers whitelist like any other HTTP header.
        public let enableAcceptEncodingGzip: Bool
        /// An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
        public let headersConfig: CachePolicyHeadersConfig
        /// An object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
        public let queryStringsConfig: CachePolicyQueryStringsConfig

        public init(cookiesConfig: CachePolicyCookiesConfig, enableAcceptEncodingBrotli: Bool? = nil, enableAcceptEncodingGzip: Bool, headersConfig: CachePolicyHeadersConfig, queryStringsConfig: CachePolicyQueryStringsConfig) {
            self.cookiesConfig = cookiesConfig
            self.enableAcceptEncodingBrotli = enableAcceptEncodingBrotli
            self.enableAcceptEncodingGzip = enableAcceptEncodingGzip
            self.headersConfig = headersConfig
            self.queryStringsConfig = queryStringsConfig
        }

        private enum CodingKeys: String, CodingKey {
            case cookiesConfig = "CookiesConfig"
            case enableAcceptEncodingBrotli = "EnableAcceptEncodingBrotli"
            case enableAcceptEncodingGzip = "EnableAcceptEncodingGzip"
            case headersConfig = "HeadersConfig"
            case queryStringsConfig = "QueryStringsConfig"
        }
    }

    public struct Paths: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Path" }

        /// A complex type that contains a list of the paths that you want to invalidate.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The number of invalidation paths specified for the objects that you want to invalidate.
        public let quantity: Int

        public init(items: [String]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct PublicKey: AWSDecodableShape {
        /// The date and time when the public key was uploaded.
        public let createdTime: Date
        /// The identifier of the public key.
        public let id: String
        /// Configuration information about a public key that you can use with signed URLs and signed cookies, or with field-level encryption.
        public let publicKeyConfig: PublicKeyConfig

        public init(createdTime: Date, id: String, publicKeyConfig: PublicKeyConfig) {
            self.createdTime = createdTime
            self.id = id
            self.publicKeyConfig = publicKeyConfig
        }

        private enum CodingKeys: String, CodingKey {
            case createdTime = "CreatedTime"
            case id = "Id"
            case publicKeyConfig = "PublicKeyConfig"
        }
    }

    public struct PublicKeyConfig: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A string included in the request to help make sure that the request can’t be replayed.
        public let callerReference: String
        /// A comment to describe the public key.
        public let comment: String?
        /// The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
        public let encodedKey: String
        /// A name to help identify the public key.
        public let name: String

        public init(callerReference: String, comment: String? = nil, encodedKey: String, name: String) {
            self.callerReference = callerReference
            self.comment = comment
            self.encodedKey = encodedKey
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case callerReference = "CallerReference"
            case comment = "Comment"
            case encodedKey = "EncodedKey"
            case name = "Name"
        }
    }

    public struct PublicKeyList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "PublicKeySummary" }

        /// A list of public keys.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, PublicKeySummary>>
        public var items: [PublicKeySummary]?
        /// The maximum number of public keys you want in the response.
        public let maxItems: Int
        /// If there are more elements to be listed, this element is present and contains the value that you can use for the Marker request parameter to continue listing your public keys where you left off.
        public let nextMarker: String?
        /// The number of public keys in the list.
        public let quantity: Int

        public init(items: [PublicKeySummary]? = nil, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.items = items
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct PublicKeySummary: AWSDecodableShape {
        /// A comment to describe the public key.
        public let comment: String?
        /// The date and time when the public key was uploaded.
        public let createdTime: Date
        /// The public key.
        public let encodedKey: String
        /// The identifier of the public key.
        public let id: String
        /// A name to help identify the public key.
        public let name: String

        public init(comment: String? = nil, createdTime: Date, encodedKey: String, id: String, name: String) {
            self.comment = comment
            self.createdTime = createdTime
            self.encodedKey = encodedKey
            self.id = id
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case comment = "Comment"
            case createdTime = "CreatedTime"
            case encodedKey = "EncodedKey"
            case id = "Id"
            case name = "Name"
        }
    }

    public struct QueryArgProfile: AWSEncodableShape & AWSDecodableShape {
        /// ID of profile to use for field-level encryption query argument-profile mapping
        public let profileId: String
        /// Query argument for field-level encryption query argument-profile mapping.
        public let queryArg: String

        public init(profileId: String, queryArg: String) {
            self.profileId = profileId
            self.queryArg = queryArg
        }

        private enum CodingKeys: String, CodingKey {
            case profileId = "ProfileId"
            case queryArg = "QueryArg"
        }
    }

    public struct QueryArgProfileConfig: AWSEncodableShape & AWSDecodableShape {
        /// Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown.
        public let forwardWhenQueryArgProfileIsUnknown: Bool
        /// Profiles specified for query argument-profile mapping for field-level encryption.
        public let queryArgProfiles: QueryArgProfiles?

        public init(forwardWhenQueryArgProfileIsUnknown: Bool, queryArgProfiles: QueryArgProfiles? = nil) {
            self.forwardWhenQueryArgProfileIsUnknown = forwardWhenQueryArgProfileIsUnknown
            self.queryArgProfiles = queryArgProfiles
        }

        private enum CodingKeys: String, CodingKey {
            case forwardWhenQueryArgProfileIsUnknown = "ForwardWhenQueryArgProfileIsUnknown"
            case queryArgProfiles = "QueryArgProfiles"
        }
    }

    public struct QueryArgProfiles: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "QueryArgProfile" }

        /// Number of items for query argument-profile mapping for field-level encryption.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, QueryArgProfile>>
        public var items: [QueryArgProfile]?
        /// Number of profiles for query argument-profile mapping for field-level encryption.
        public let quantity: Int

        public init(items: [QueryArgProfile]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct QueryStringNames: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Name" }

        /// A list of query string names.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The number of query string names in the Items list.
        public let quantity: Int

        public init(items: [String]? = nil, quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct RealtimeLogConfig: AWSDecodableShape {
        public struct _FieldsEncoding: ArrayCoderProperties { public static let member = "Field" }

        /// The Amazon Resource Name (ARN) of this real-time log configuration.
        public let arn: String
        /// Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
        @CustomCoding<StandardArrayCoder>
        public var endPoints: [EndPoint]
        /// A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream. For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
        @CustomCoding<ArrayCoder<_FieldsEncoding, String>>
        public var fields: [String]
        /// The unique name of this real-time log configuration.
        public let name: String
        /// The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
        public let samplingRate: Int64

        public init(arn: String, endPoints: [EndPoint], fields: [String], name: String, samplingRate: Int64) {
            self.arn = arn
            self.endPoints = endPoints
            self.fields = fields
            self.name = name
            self.samplingRate = samplingRate
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case endPoints = "EndPoints"
            case fields = "Fields"
            case name = "Name"
            case samplingRate = "SamplingRate"
        }
    }

    public struct RealtimeLogConfigs: AWSDecodableShape {
        /// A flag that indicates whether there are more real-time log configurations than are contained in this list.
        public let isTruncated: Bool
        /// Contains the list of real-time log configurations.
        @OptionalCustomCoding<StandardArrayCoder>
        public var items: [RealtimeLogConfig]?
        /// This parameter indicates where this list of real-time log configurations begins. This list includes real-time log configurations that occur after the marker.
        public let marker: String
        /// The maximum number of real-time log configurations requested.
        public let maxItems: Int
        /// If there are more items in the list than are in this response, this element is present. It contains the value that you should use in the Marker field of a subsequent request to continue listing real-time log configurations where you left off.
        public let nextMarker: String?

        public init(isTruncated: Bool, items: [RealtimeLogConfig]? = nil, marker: String, maxItems: Int, nextMarker: String? = nil) {
            self.isTruncated = isTruncated
            self.items = items
            self.marker = marker
            self.maxItems = maxItems
            self.nextMarker = nextMarker
        }

        private enum CodingKeys: String, CodingKey {
            case isTruncated = "IsTruncated"
            case items = "Items"
            case marker = "Marker"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
        }
    }

    public struct RealtimeMetricsSubscriptionConfig: AWSEncodableShape & AWSDecodableShape {
        /// A flag that indicates whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
        public let realtimeMetricsSubscriptionStatus: RealtimeMetricsSubscriptionStatus

        public init(realtimeMetricsSubscriptionStatus: RealtimeMetricsSubscriptionStatus) {
            self.realtimeMetricsSubscriptionStatus = realtimeMetricsSubscriptionStatus
        }

        private enum CodingKeys: String, CodingKey {
            case realtimeMetricsSubscriptionStatus = "RealtimeMetricsSubscriptionStatus"
        }
    }

    public struct Restrictions: AWSEncodableShape & AWSDecodableShape {
        /// A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.
        public let geoRestriction: GeoRestriction

        public init(geoRestriction: GeoRestriction) {
            self.geoRestriction = geoRestriction
        }

        private enum CodingKeys: String, CodingKey {
            case geoRestriction = "GeoRestriction"
        }
    }

    public struct S3Origin: AWSEncodableShape & AWSDecodableShape {
        /// The DNS name of the Amazon S3 origin.
        public let domainName: String
        /// The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the  Amazon CloudFront Developer Guide.
        public let originAccessIdentity: String

        public init(domainName: String, originAccessIdentity: String) {
            self.domainName = domainName
            self.originAccessIdentity = originAccessIdentity
        }

        private enum CodingKeys: String, CodingKey {
            case domainName = "DomainName"
            case originAccessIdentity = "OriginAccessIdentity"
        }
    }

    public struct S3OriginConfig: AWSEncodableShape & AWSDecodableShape {
        /// The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that viewers can only access objects in an Amazon S3 bucket through CloudFront. The format of the value is: origin-access-identity/cloudfront/ID-of-origin-access-identity  where  ID-of-origin-access-identity  is the value that CloudFront returned in the ID element when you created the origin access identity. If you want viewers to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. For more information about the origin access identity, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
        public let originAccessIdentity: String

        public init(originAccessIdentity: String) {
            self.originAccessIdentity = originAccessIdentity
        }

        private enum CodingKeys: String, CodingKey {
            case originAccessIdentity = "OriginAccessIdentity"
        }
    }

    public struct Signer: AWSDecodableShape {
        /// An AWS account number that contains active CloudFront key pairs that CloudFront can use to verify the signatures of signed URLs and signed cookies. If the AWS account that owns the key pairs is the same account that owns the CloudFront distribution, the value of this field is self.
        public let awsAccountNumber: String?
        /// A list of CloudFront key pair identifiers.
        public let keyPairIds: KeyPairIds?

        public init(awsAccountNumber: String? = nil, keyPairIds: KeyPairIds? = nil) {
            self.awsAccountNumber = awsAccountNumber
            self.keyPairIds = keyPairIds
        }

        private enum CodingKeys: String, CodingKey {
            case awsAccountNumber = "AwsAccountNumber"
            case keyPairIds = "KeyPairIds"
        }
    }

    public struct StatusCodes: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "StatusCode" }

        /// The items (status codes) for an origin group.
        @CustomCoding<ArrayCoder<_ItemsEncoding, Int>>
        public var items: [Int]
        /// The number of status codes.
        public let quantity: Int

        public init(items: [Int], quantity: Int) {
            self.items = items
            self.quantity = quantity
        }

        public func validate(name: String) throws {
            try self.validate(self.items, name: "items", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct StreamingDistribution: AWSDecodableShape {
        /// A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content. The Signer complex type lists the AWS account number of the trusted signer or self if the signer is the AWS account that created the distribution. The Signer element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create signed URLs. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
        public let activeTrustedSigners: ActiveTrustedSigners
        /// The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
        public let arn: String
        /// The domain name that corresponds to the streaming distribution, for example, s5c39gqb8ow64r.cloudfront.net.
        public let domainName: String
        /// The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE.
        public let id: String
        /// The date and time that the distribution was last modified.
        public let lastModifiedTime: Date?
        /// The current status of the RTMP distribution. When the status is Deployed, the distribution's information is propagated to all CloudFront edge locations.
        public let status: String
        /// The current configuration information for the RTMP distribution.
        public let streamingDistributionConfig: StreamingDistributionConfig

        public init(activeTrustedSigners: ActiveTrustedSigners, arn: String, domainName: String, id: String, lastModifiedTime: Date? = nil, status: String, streamingDistributionConfig: StreamingDistributionConfig) {
            self.activeTrustedSigners = activeTrustedSigners
            self.arn = arn
            self.domainName = domainName
            self.id = id
            self.lastModifiedTime = lastModifiedTime
            self.status = status
            self.streamingDistributionConfig = streamingDistributionConfig
        }

        private enum CodingKeys: String, CodingKey {
            case activeTrustedSigners = "ActiveTrustedSigners"
            case arn = "ARN"
            case domainName = "DomainName"
            case id = "Id"
            case lastModifiedTime = "LastModifiedTime"
            case status = "Status"
            case streamingDistributionConfig = "StreamingDistributionConfig"
        }
    }

    public struct StreamingDistributionConfig: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
        public let aliases: Aliases?
        /// A unique value (for example, a date-time stamp) that ensures that the request can't be replayed. If the value of CallerReference is new (regardless of the content of the StreamingDistributionConfig object), CloudFront creates a new distribution. If CallerReference is a value that you already sent in a previous request to create a distribution, CloudFront returns a DistributionAlreadyExists error.
        public let callerReference: String
        /// Any comments you want to include about the streaming distribution.
        public let comment: String
        /// Whether the streaming distribution is enabled to accept user requests for content.
        public let enabled: Bool
        /// A complex type that controls whether access logs are written for the streaming distribution.
        public let logging: StreamingLoggingConfig?
        /// A complex type that contains information about price class for this streaming distribution.
        public let priceClass: PriceClass?
        /// A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
        public let s3Origin: S3Origin
        /// A complex type that specifies any AWS accounts that you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use public URLs, remove this element. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
        public let trustedSigners: TrustedSigners

        public init(aliases: Aliases? = nil, callerReference: String, comment: String, enabled: Bool, logging: StreamingLoggingConfig? = nil, priceClass: PriceClass? = nil, s3Origin: S3Origin, trustedSigners: TrustedSigners) {
            self.aliases = aliases
            self.callerReference = callerReference
            self.comment = comment
            self.enabled = enabled
            self.logging = logging
            self.priceClass = priceClass
            self.s3Origin = s3Origin
            self.trustedSigners = trustedSigners
        }

        private enum CodingKeys: String, CodingKey {
            case aliases = "Aliases"
            case callerReference = "CallerReference"
            case comment = "Comment"
            case enabled = "Enabled"
            case logging = "Logging"
            case priceClass = "PriceClass"
            case s3Origin = "S3Origin"
            case trustedSigners = "TrustedSigners"
        }
    }

    public struct StreamingDistributionConfigWithTags: AWSEncodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"

        /// A streaming distribution Configuration.
        public let streamingDistributionConfig: StreamingDistributionConfig
        /// A complex type that contains zero or more Tag elements.
        public let tags: Tags

        public init(streamingDistributionConfig: StreamingDistributionConfig, tags: Tags) {
            self.streamingDistributionConfig = streamingDistributionConfig
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.tags.validate(name: "\(name).tags")
        }

        private enum CodingKeys: String, CodingKey {
            case streamingDistributionConfig = "StreamingDistributionConfig"
            case tags = "Tags"
        }
    }

    public struct StreamingDistributionList: AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "StreamingDistributionSummary" }

        /// A flag that indicates whether more streaming distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.
        public let isTruncated: Bool
        /// A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, StreamingDistributionSummary>>
        public var items: [StreamingDistributionSummary]?
        /// The value you provided for the Marker request parameter.
        public let marker: String
        /// The value you provided for the MaxItems request parameter.
        public let maxItems: Int
        /// If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your RTMP distributions where they left off.
        public let nextMarker: String?
        /// The number of streaming distributions that were created by the current AWS account.
        public let quantity: Int

        public init(isTruncated: Bool, items: [StreamingDistributionSummary]? = nil, marker: String, maxItems: Int, nextMarker: String? = nil, quantity: Int) {
            self.isTruncated = isTruncated
            self.items = items
            self.marker = marker
            self.maxItems = maxItems
            self.nextMarker = nextMarker
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case isTruncated = "IsTruncated"
            case items = "Items"
            case marker = "Marker"
            case maxItems = "MaxItems"
            case nextMarker = "NextMarker"
            case quantity = "Quantity"
        }
    }

    public struct StreamingDistributionSummary: AWSDecodableShape {
        /// A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
        public let aliases: Aliases
        ///  The ARN (Amazon Resource Name) for the streaming distribution. For example: arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
        public let arn: String
        /// The comment originally specified when this distribution was created.
        public let comment: String
        /// The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net.
        public let domainName: String
        /// Whether the distribution is enabled to accept end user requests for content.
        public let enabled: Bool
        /// The identifier for the distribution, for example, EDFDVBD632BHDS5.
        public let id: String
        /// The date and time the distribution was last modified.
        public let lastModifiedTime: Date
        /// A complex type that contains information about price class for this streaming distribution.
        public let priceClass: PriceClass
        /// A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
        public let s3Origin: S3Origin
        ///  Indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.
        public let status: String
        /// A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items.If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
        public let trustedSigners: TrustedSigners

        public init(aliases: Aliases, arn: String, comment: String, domainName: String, enabled: Bool, id: String, lastModifiedTime: Date, priceClass: PriceClass, s3Origin: S3Origin, status: String, trustedSigners: TrustedSigners) {
            self.aliases = aliases
            self.arn = arn
            self.comment = comment
            self.domainName = domainName
            self.enabled = enabled
            self.id = id
            self.lastModifiedTime = lastModifiedTime
            self.priceClass = priceClass
            self.s3Origin = s3Origin
            self.status = status
            self.trustedSigners = trustedSigners
        }

        private enum CodingKeys: String, CodingKey {
            case aliases = "Aliases"
            case arn = "ARN"
            case comment = "Comment"
            case domainName = "DomainName"
            case enabled = "Enabled"
            case id = "Id"
            case lastModifiedTime = "LastModifiedTime"
            case priceClass = "PriceClass"
            case s3Origin = "S3Origin"
            case status = "Status"
            case trustedSigners = "TrustedSigners"
        }
    }

    public struct StreamingLoggingConfig: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
        public let bucket: String
        /// Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.
        public let enabled: Bool
        /// An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix element in the Logging element.
        public let prefix: String

        public init(bucket: String, enabled: Bool, prefix: String) {
            self.bucket = bucket
            self.enabled = enabled
            self.prefix = prefix
        }

        private enum CodingKeys: String, CodingKey {
            case bucket = "Bucket"
            case enabled = "Enabled"
            case prefix = "Prefix"
        }
    }

    public struct Tag: AWSEncodableShape & AWSDecodableShape {
        ///  A string that contains Tag key. The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
        public let key: String
        ///  A string that contains an optional Tag value. The string length should be between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
        public let value: String?

        public init(key: String, value: String? = nil) {
            self.key = key
            self.value = value
        }

        public func validate(name: String) throws {
            try self.validate(self.key, name: "key", parent: name, max: 128)
            try self.validate(self.key, name: "key", parent: name, min: 1)
            try self.validate(self.key, name: "key", parent: name, pattern: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$")
            try self.validate(self.value, name: "value", parent: name, max: 256)
            try self.validate(self.value, name: "value", parent: name, min: 0)
            try self.validate(self.value, name: "value", parent: name, pattern: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case key = "Key"
            case value = "Value"
        }
    }

    public struct TagKeys: AWSEncodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Key" }

        ///  A complex type that contains Tag key elements.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?

        public init(items: [String]? = nil) {
            self.items = items
        }

        public func validate(name: String) throws {
            try self.items?.forEach {
                try validate($0, name: "items[]", parent: name, max: 128)
                try validate($0, name: "items[]", parent: name, min: 1)
                try validate($0, name: "items[]", parent: name, pattern: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
        }
    }

    public struct TagResourceRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "tags"
        public static var _encoding = [
            AWSMemberEncoding(label: "resource", location: .querystring(locationName: "Resource")),
            AWSMemberEncoding(label: "tags", location: .body(locationName: "Tags"))
        ]

        ///  An ARN of a CloudFront resource.
        public let resource: String
        ///  A complex type that contains zero or more Tag elements.
        public let tags: Tags

        public init(resource: String, tags: Tags) {
            self.resource = resource
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.validate(self.resource, name: "resource", parent: name, pattern: "arn:aws(-cn)?:cloudfront::[0-9]+:.*")
            try self.tags.validate(name: "\(name).tags")
        }

        private enum CodingKeys: String, CodingKey {
            case tags = "Tags"
        }
    }

    public struct Tags: AWSEncodableShape & AWSDecodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "Tag" }

        ///  A complex type that contains Tag elements.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, Tag>>
        public var items: [Tag]?

        public init(items: [Tag]? = nil) {
            self.items = items
        }

        public func validate(name: String) throws {
            try self.items?.forEach {
                try $0.validate(name: "\(name).items[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case items = "Items"
        }
    }

    public struct TrustedKeyGroups: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "KeyGroup" }

        /// This field is true if any of the key groups in the list have public keys that CloudFront can use to verify the signatures of signed URLs and signed cookies. If not, this field is false.
        public let enabled: Bool
        /// A list of key groups identifiers.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The number of key groups in the list.
        public let quantity: Int

        public init(enabled: Bool, items: [String]? = nil, quantity: Int) {
            self.enabled = enabled
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case enabled = "Enabled"
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct TrustedSigners: AWSEncodableShape & AWSDecodableShape {
        public struct _ItemsEncoding: ArrayCoderProperties { public static let member = "AwsAccountNumber" }

        /// This field is true if any of the AWS accounts have public keys that CloudFront can use to verify the signatures of signed URLs and signed cookies. If not, this field is false.
        public let enabled: Bool
        /// A list of AWS account identifiers.
        @OptionalCustomCoding<ArrayCoder<_ItemsEncoding, String>>
        public var items: [String]?
        /// The number of AWS accounts in the list.
        public let quantity: Int

        public init(enabled: Bool, items: [String]? = nil, quantity: Int) {
            self.enabled = enabled
            self.items = items
            self.quantity = quantity
        }

        private enum CodingKeys: String, CodingKey {
            case enabled = "Enabled"
            case items = "Items"
            case quantity = "Quantity"
        }
    }

    public struct UntagResourceRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "tagKeys"
        public static var _encoding = [
            AWSMemberEncoding(label: "resource", location: .querystring(locationName: "Resource")),
            AWSMemberEncoding(label: "tagKeys", location: .body(locationName: "TagKeys"))
        ]

        ///  An ARN of a CloudFront resource.
        public let resource: String
        ///  A complex type that contains zero or more Tag key elements.
        public let tagKeys: TagKeys

        public init(resource: String, tagKeys: TagKeys) {
            self.resource = resource
            self.tagKeys = tagKeys
        }

        public func validate(name: String) throws {
            try self.validate(self.resource, name: "resource", parent: name, pattern: "arn:aws(-cn)?:cloudfront::[0-9]+:.*")
            try self.tagKeys.validate(name: "\(name).tagKeys")
        }

        private enum CodingKeys: String, CodingKey {
            case tagKeys = "TagKeys"
        }
    }

    public struct UpdateCachePolicyRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cachePolicyConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "cachePolicyConfig", location: .body(locationName: "CachePolicyConfig")),
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// A cache policy configuration.
        public let cachePolicyConfig: CachePolicyConfig
        /// The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior’s CachePolicyId field in the response to GetDistributionConfig.
        public let id: String
        /// The version of the cache policy that you are updating. The version is returned in the cache policy’s ETag field in the response to GetCachePolicyConfig.
        public let ifMatch: String?

        public init(cachePolicyConfig: CachePolicyConfig, id: String, ifMatch: String? = nil) {
            self.cachePolicyConfig = cachePolicyConfig
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: String, CodingKey {
            case cachePolicyConfig = "CachePolicyConfig"
        }
    }

    public struct UpdateCachePolicyResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cachePolicy"
        public static var _encoding = [
            AWSMemberEncoding(label: "cachePolicy", location: .body(locationName: "CachePolicy")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag"))
        ]

        /// A cache policy.
        public let cachePolicy: CachePolicy?
        /// The current version of the cache policy.
        public let eTag: String?

        public init(cachePolicy: CachePolicy? = nil, eTag: String? = nil) {
            self.cachePolicy = cachePolicy
            self.eTag = eTag
        }

        private enum CodingKeys: String, CodingKey {
            case cachePolicy = "CachePolicy"
            case eTag = "ETag"
        }
    }

    public struct UpdateCloudFrontOriginAccessIdentityRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cloudFrontOriginAccessIdentityConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "cloudFrontOriginAccessIdentityConfig", location: .body(locationName: "CloudFrontOriginAccessIdentityConfig")),
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The identity's configuration information.
        public let cloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig
        /// The identity's id.
        public let id: String
        /// The value of the ETag header that you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(cloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig, id: String, ifMatch: String? = nil) {
            self.cloudFrontOriginAccessIdentityConfig = cloudFrontOriginAccessIdentityConfig
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: String, CodingKey {
            case cloudFrontOriginAccessIdentityConfig = "CloudFrontOriginAccessIdentityConfig"
        }
    }

    public struct UpdateCloudFrontOriginAccessIdentityResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "cloudFrontOriginAccessIdentity"
        public static var _encoding = [
            AWSMemberEncoding(label: "cloudFrontOriginAccessIdentity", location: .body(locationName: "CloudFrontOriginAccessIdentity")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag"))
        ]

        /// The origin access identity's information.
        public let cloudFrontOriginAccessIdentity: CloudFrontOriginAccessIdentity?
        /// The current version of the configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?

        public init(cloudFrontOriginAccessIdentity: CloudFrontOriginAccessIdentity? = nil, eTag: String? = nil) {
            self.cloudFrontOriginAccessIdentity = cloudFrontOriginAccessIdentity
            self.eTag = eTag
        }

        private enum CodingKeys: String, CodingKey {
            case cloudFrontOriginAccessIdentity = "CloudFrontOriginAccessIdentity"
            case eTag = "ETag"
        }
    }

    public struct UpdateDistributionRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distributionConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "distributionConfig", location: .body(locationName: "DistributionConfig")),
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// The distribution's configuration information.
        public let distributionConfig: DistributionConfig
        /// The distribution's id.
        public let id: String
        /// The value of the ETag header that you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(distributionConfig: DistributionConfig, id: String, ifMatch: String? = nil) {
            self.distributionConfig = distributionConfig
            self.id = id
            self.ifMatch = ifMatch
        }

        public func validate(name: String) throws {
            try self.distributionConfig.validate(name: "\(name).distributionConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case distributionConfig = "DistributionConfig"
        }
    }

    public struct UpdateDistributionResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "distribution"
        public static var _encoding = [
            AWSMemberEncoding(label: "distribution", location: .body(locationName: "Distribution")),
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag"))
        ]

        /// The distribution's information.
        public let distribution: Distribution?
        /// The current version of the configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?

        public init(distribution: Distribution? = nil, eTag: String? = nil) {
            self.distribution = distribution
            self.eTag = eTag
        }

        private enum CodingKeys: String, CodingKey {
            case distribution = "Distribution"
            case eTag = "ETag"
        }
    }

    public struct UpdateFieldLevelEncryptionConfigRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "fieldLevelEncryptionConfig", location: .body(locationName: "FieldLevelEncryptionConfig")),
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// Request to update a field-level encryption configuration.
        public let fieldLevelEncryptionConfig: FieldLevelEncryptionConfig
        /// The ID of the configuration you want to update.
        public let id: String
        /// The value of the ETag header that you received when retrieving the configuration identity to update. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(fieldLevelEncryptionConfig: FieldLevelEncryptionConfig, id: String, ifMatch: String? = nil) {
            self.fieldLevelEncryptionConfig = fieldLevelEncryptionConfig
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: String, CodingKey {
            case fieldLevelEncryptionConfig = "FieldLevelEncryptionConfig"
        }
    }

    public struct UpdateFieldLevelEncryptionConfigResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryption"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "fieldLevelEncryption", location: .body(locationName: "FieldLevelEncryption"))
        ]

        /// The value of the ETag header that you received when updating the configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// Return the results of updating the configuration.
        public let fieldLevelEncryption: FieldLevelEncryption?

        public init(eTag: String? = nil, fieldLevelEncryption: FieldLevelEncryption? = nil) {
            self.eTag = eTag
            self.fieldLevelEncryption = fieldLevelEncryption
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case fieldLevelEncryption = "FieldLevelEncryption"
        }
    }

    public struct UpdateFieldLevelEncryptionProfileRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionProfileConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "fieldLevelEncryptionProfileConfig", location: .body(locationName: "FieldLevelEncryptionProfileConfig")),
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match"))
        ]

        /// Request to update a field-level encryption profile.
        public let fieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig
        /// The ID of the field-level encryption profile request.
        public let id: String
        /// The value of the ETag header that you received when retrieving the profile identity to update. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?

        public init(fieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig, id: String, ifMatch: String? = nil) {
            self.fieldLevelEncryptionProfileConfig = fieldLevelEncryptionProfileConfig
            self.id = id
            self.ifMatch = ifMatch
        }

        private enum CodingKeys: String, CodingKey {
            case fieldLevelEncryptionProfileConfig = "FieldLevelEncryptionProfileConfig"
        }
    }

    public struct UpdateFieldLevelEncryptionProfileResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "fieldLevelEncryptionProfile"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "fieldLevelEncryptionProfile", location: .body(locationName: "FieldLevelEncryptionProfile"))
        ]

        /// The result of the field-level encryption profile request.
        public let eTag: String?
        /// Return the results of updating the profile.
        public let fieldLevelEncryptionProfile: FieldLevelEncryptionProfile?

        public init(eTag: String? = nil, fieldLevelEncryptionProfile: FieldLevelEncryptionProfile? = nil) {
            self.eTag = eTag
            self.fieldLevelEncryptionProfile = fieldLevelEncryptionProfile
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case fieldLevelEncryptionProfile = "FieldLevelEncryptionProfile"
        }
    }

    public struct UpdateKeyGroupRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "keyGroupConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match")),
            AWSMemberEncoding(label: "keyGroupConfig", location: .body(locationName: "KeyGroupConfig"))
        ]

        /// The identifier of the key group that you are updating.
        public let id: String
        /// The version of the key group that you are updating. The version is the key group’s ETag value.
        public let ifMatch: String?
        /// The key group configuration.
        public let keyGroupConfig: KeyGroupConfig

        public init(id: String, ifMatch: String? = nil, keyGroupConfig: KeyGroupConfig) {
            self.id = id
            self.ifMatch = ifMatch
            self.keyGroupConfig = keyGroupConfig
        }

        private enum CodingKeys: String, CodingKey {
            case keyGroupConfig = "KeyGroupConfig"
        }
    }

    public struct UpdateKeyGroupResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "keyGroup"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "keyGroup", location: .body(locationName: "KeyGroup"))
        ]

        /// The identifier for this version of the key group.
        public let eTag: String?
        /// The key group that was just updated.
        public let keyGroup: KeyGroup?

        public init(eTag: String? = nil, keyGroup: KeyGroup? = nil) {
            self.eTag = eTag
            self.keyGroup = keyGroup
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case keyGroup = "KeyGroup"
        }
    }

    public struct UpdateOriginRequestPolicyRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "originRequestPolicyConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match")),
            AWSMemberEncoding(label: "originRequestPolicyConfig", location: .body(locationName: "OriginRequestPolicyConfig"))
        ]

        /// The unique identifier for the origin request policy that you are updating. The identifier is returned in a cache behavior’s OriginRequestPolicyId field in the response to GetDistributionConfig.
        public let id: String
        /// The version of the origin request policy that you are updating. The version is returned in the origin request policy’s ETag field in the response to GetOriginRequestPolicyConfig.
        public let ifMatch: String?
        /// An origin request policy configuration.
        public let originRequestPolicyConfig: OriginRequestPolicyConfig

        public init(id: String, ifMatch: String? = nil, originRequestPolicyConfig: OriginRequestPolicyConfig) {
            self.id = id
            self.ifMatch = ifMatch
            self.originRequestPolicyConfig = originRequestPolicyConfig
        }

        private enum CodingKeys: String, CodingKey {
            case originRequestPolicyConfig = "OriginRequestPolicyConfig"
        }
    }

    public struct UpdateOriginRequestPolicyResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "originRequestPolicy"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "originRequestPolicy", location: .body(locationName: "OriginRequestPolicy"))
        ]

        /// The current version of the origin request policy.
        public let eTag: String?
        /// An origin request policy.
        public let originRequestPolicy: OriginRequestPolicy?

        public init(eTag: String? = nil, originRequestPolicy: OriginRequestPolicy? = nil) {
            self.eTag = eTag
            self.originRequestPolicy = originRequestPolicy
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case originRequestPolicy = "OriginRequestPolicy"
        }
    }

    public struct UpdatePublicKeyRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "publicKeyConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match")),
            AWSMemberEncoding(label: "publicKeyConfig", location: .body(locationName: "PublicKeyConfig"))
        ]

        /// The identifier of the public key that you are updating.
        public let id: String
        /// The value of the ETag header that you received when retrieving the public key to update. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?
        /// A public key configuration.
        public let publicKeyConfig: PublicKeyConfig

        public init(id: String, ifMatch: String? = nil, publicKeyConfig: PublicKeyConfig) {
            self.id = id
            self.ifMatch = ifMatch
            self.publicKeyConfig = publicKeyConfig
        }

        private enum CodingKeys: String, CodingKey {
            case publicKeyConfig = "PublicKeyConfig"
        }
    }

    public struct UpdatePublicKeyResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "publicKey"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "publicKey", location: .body(locationName: "PublicKey"))
        ]

        /// The identifier of the current version of the public key.
        public let eTag: String?
        /// The public key.
        public let publicKey: PublicKey?

        public init(eTag: String? = nil, publicKey: PublicKey? = nil) {
            self.eTag = eTag
            self.publicKey = publicKey
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case publicKey = "PublicKey"
        }
    }

    public struct UpdateRealtimeLogConfigRequest: AWSEncodableShape {
        public static let _xmlNamespace: String? = "http://cloudfront.amazonaws.com/doc/2020-05-31/"
        public struct _FieldsEncoding: ArrayCoderProperties { public static let member = "Field" }

        /// The Amazon Resource Name (ARN) for this real-time log configuration.
        public let arn: String?
        /// Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
        @OptionalCustomCoding<StandardArrayCoder>
        public var endPoints: [EndPoint]?
        /// A list of fields to include in each real-time log record. For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
        @OptionalCustomCoding<ArrayCoder<_FieldsEncoding, String>>
        public var fields: [String]?
        /// The name for this real-time log configuration.
        public let name: String?
        /// The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive.
        public let samplingRate: Int64?

        public init(arn: String? = nil, endPoints: [EndPoint]? = nil, fields: [String]? = nil, name: String? = nil, samplingRate: Int64? = nil) {
            self.arn = arn
            self.endPoints = endPoints
            self.fields = fields
            self.name = name
            self.samplingRate = samplingRate
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case endPoints = "EndPoints"
            case fields = "Fields"
            case name = "Name"
            case samplingRate = "SamplingRate"
        }
    }

    public struct UpdateRealtimeLogConfigResult: AWSDecodableShape {
        /// A real-time log configuration.
        public let realtimeLogConfig: RealtimeLogConfig?

        public init(realtimeLogConfig: RealtimeLogConfig? = nil) {
            self.realtimeLogConfig = realtimeLogConfig
        }

        private enum CodingKeys: String, CodingKey {
            case realtimeLogConfig = "RealtimeLogConfig"
        }
    }

    public struct UpdateStreamingDistributionRequest: AWSEncodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "streamingDistributionConfig"
        public static var _encoding = [
            AWSMemberEncoding(label: "id", location: .uri(locationName: "Id")),
            AWSMemberEncoding(label: "ifMatch", location: .header(locationName: "If-Match")),
            AWSMemberEncoding(label: "streamingDistributionConfig", location: .body(locationName: "StreamingDistributionConfig"))
        ]

        /// The streaming distribution's id.
        public let id: String
        /// The value of the ETag header that you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL.
        public let ifMatch: String?
        /// The streaming distribution's configuration information.
        public let streamingDistributionConfig: StreamingDistributionConfig

        public init(id: String, ifMatch: String? = nil, streamingDistributionConfig: StreamingDistributionConfig) {
            self.id = id
            self.ifMatch = ifMatch
            self.streamingDistributionConfig = streamingDistributionConfig
        }

        private enum CodingKeys: String, CodingKey {
            case streamingDistributionConfig = "StreamingDistributionConfig"
        }
    }

    public struct UpdateStreamingDistributionResult: AWSDecodableShape & AWSShapeWithPayload {
        /// The key for the payload
        public static let _payloadPath: String = "streamingDistribution"
        public static var _encoding = [
            AWSMemberEncoding(label: "eTag", location: .header(locationName: "ETag")),
            AWSMemberEncoding(label: "streamingDistribution", location: .body(locationName: "StreamingDistribution"))
        ]

        /// The current version of the configuration. For example: E2QWRUHAPOMQZL.
        public let eTag: String?
        /// The streaming distribution's information.
        public let streamingDistribution: StreamingDistribution?

        public init(eTag: String? = nil, streamingDistribution: StreamingDistribution? = nil) {
            self.eTag = eTag
            self.streamingDistribution = streamingDistribution
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "ETag"
            case streamingDistribution = "StreamingDistribution"
        }
    }

    public struct ViewerCertificate: AWSEncodableShape & AWSDecodableShape {
        /// If the distribution uses Aliases (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in AWS Certificate Manager (ACM), provide the Amazon Resource Name (ARN) of the ACM certificate. CloudFront only supports ACM certificates in the US East (N. Virginia) Region (us-east-1). If you specify an ACM certificate ARN, you must also specify values for MinimumProtocolVersion and SSLSupportMethod.
        public let aCMCertificateArn: String?
        /// If the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net, set this field to true. If the distribution uses Aliases (alternate domain names or CNAMEs), set this field to false and specify values for the following fields:    ACMCertificateArn or IAMCertificateId (specify a value for one, not both)    MinimumProtocolVersion     SSLSupportMethod
        public let cloudFrontDefaultCertificate: Bool?
        /// If the distribution uses Aliases (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in AWS Identity and Access Management (AWS IAM), provide the ID of the IAM certificate. If you specify an IAM certificate ID, you must also specify values for MinimumProtocolVersion and SSLSupportMethod.
        public let iAMCertificateId: String?
        /// If the distribution uses Aliases (alternate domain names or CNAMEs), specify the security policy that you want CloudFront to use for HTTPS connections with viewers. The security policy determines two settings:   The minimum SSL/TLS protocol that CloudFront can use to communicate with viewers.   The ciphers that CloudFront can use to encrypt the content that it returns to viewers.   For more information, see Security Policy and Supported Protocols and Ciphers Between Viewers and CloudFront in the Amazon CloudFront Developer Guide.  On the CloudFront console, this setting is called Security Policy.  When you’re using SNI only (you set SSLSupportMethod to sni-only), you must specify TLSv1 or higher.  If the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net (you set CloudFrontDefaultCertificate to true), CloudFront automatically sets the security policy to TLSv1 regardless of the value that you set here.
        public let minimumProtocolVersion: MinimumProtocolVersion?
        /// If the distribution uses Aliases (alternate domain names or CNAMEs), specify which viewers the distribution accepts HTTPS connections from.    sni-only – The distribution accepts HTTPS connections from only viewers that support server name indication (SNI). This is recommended. Most browsers and clients support SNI.    vip – The distribution accepts HTTPS connections from all viewers including those that don’t support SNI. This is not recommended, and results in additional monthly charges from CloudFront.    static-ip - Do not specify this value unless your distribution has been enabled for this feature by the CloudFront team. If you have a use case that requires static IP addresses for a distribution, contact CloudFront through the AWS Support Center.   If the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net, don’t set a value for this field.
        public let sSLSupportMethod: SSLSupportMethod?

        public init(aCMCertificateArn: String? = nil, cloudFrontDefaultCertificate: Bool? = nil, iAMCertificateId: String? = nil, minimumProtocolVersion: MinimumProtocolVersion? = nil, sSLSupportMethod: SSLSupportMethod? = nil) {
            self.aCMCertificateArn = aCMCertificateArn
            self.cloudFrontDefaultCertificate = cloudFrontDefaultCertificate
            self.iAMCertificateId = iAMCertificateId
            self.minimumProtocolVersion = minimumProtocolVersion
            self.sSLSupportMethod = sSLSupportMethod
        }

        private enum CodingKeys: String, CodingKey {
            case aCMCertificateArn = "ACMCertificateArn"
            case cloudFrontDefaultCertificate = "CloudFrontDefaultCertificate"
            case iAMCertificateId = "IAMCertificateId"
            case minimumProtocolVersion = "MinimumProtocolVersion"
            case sSLSupportMethod = "SSLSupportMethod"
        }
    }
}
